aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathaniel Saxe <NathanielSaxophone@gmail.com>2026-01-31 20:57:53 -0500
committerNathaniel Saxe <NathanielSaxophone@gmail.com>2026-01-31 20:57:53 -0500
commiteb78def62dbc65212fdb67d0b6e181fc15183c32 (patch)
tree97ac2716e101d4bbc2a557b13daa65fc5a7969d1 /src
parentbb7e99dde0049e9e1ec3437f45a8b3ccfe98e959 (diff)
private my helper functions so as not to pollute namespace
Diffstat (limited to 'src')
-rw-r--r--src/server/action.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/action.odin b/src/server/action.odin
index 58dc794..9402eea 100644
--- a/src/server/action.odin
+++ b/src/server/action.odin
@@ -193,6 +193,7 @@ add_missing_imports :: proc(
return
}
+@(private = "file")
get_block_original_text :: proc(block: []^ast.Stmt, document_text: []u8) -> string {
if len(block) == 0 {
return ""
@@ -202,6 +203,7 @@ get_block_original_text :: proc(block: []^ast.Stmt, document_text: []u8) -> stri
return string(document_text[start.offset:end.offset])
}
+@(private = "file")
get_switch_cases_info :: proc(
document: ^Document,
ast_context: ^AstContext,
@@ -284,6 +286,7 @@ get_switch_cases_info :: proc(
}
}
+@(private = "file")
create_populate_switch_cases_edit :: proc(
position_context: ^DocumentPositionContext,
existing_cases: map[string]string,