diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-08 10:55:17 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-08 10:55:17 +1100 |
| commit | 193e6ebd245fca345d83e5c4cbfd6cf7b5b062de (patch) | |
| tree | beeb7487feabd1d3a064dcbc7a34adffb863a921 /src/server/action_invert_if_statements.odin | |
| parent | e898b2d8dfaa121ff1a9375a0b18074e824b1e24 (diff) | |
| parent | 7d5b8ede0f4248773d71fbfffcf9cde40c9cc774 (diff) | |
Merge pull request #1273 from DireLines/master
feat: code action to populate remaining switch cases
Diffstat (limited to 'src/server/action_invert_if_statements.odin')
| -rw-r--r-- | src/server/action_invert_if_statements.odin | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/action_invert_if_statements.odin b/src/server/action_invert_if_statements.odin index 8e904e5..047b3a2 100644 --- a/src/server/action_invert_if_statements.odin +++ b/src/server/action_invert_if_statements.odin @@ -238,6 +238,7 @@ generate_inverted_if :: proc(document: ^Document, if_stmt: ^ast.If_Stmt) -> (str } // Get the indentation (leading whitespace) of the line containing the given offset +@(private="package") get_line_indentation :: proc(src: string, offset: int) -> string { line_start := offset for line_start > 0 && src[line_start - 1] != '\n' { |