diff options
| author | Tasha Companion <ProtonZero@users.noreply.github.com> | 2026-01-30 06:24:19 -0800 |
|---|---|---|
| committer | Tasha Companion <ProtonZero@users.noreply.github.com> | 2026-01-30 06:24:19 -0800 |
| commit | c61aa239fb8b15f604dca9cb520f15f3562b427f (patch) | |
| tree | 6d3f6903e3e7f6106f5d2f8192175a8fa213aa38 /src | |
| parent | 791b0cd1c199880574d9377a56c6569a1831efd8 (diff) | |
#+feature using-stmt
`#+feature using-stmt` is required to build successfully now.
Diffstat (limited to 'src')
| -rw-r--r-- | src/odin/printer/visit.odin | 11 | ||||
| -rw-r--r-- | src/server/analysis.odin | 1 | ||||
| -rw-r--r-- | src/server/ast.odin | 1 | ||||
| -rw-r--r-- | src/server/clone.odin | 1 | ||||
| -rw-r--r-- | src/server/collector.odin | 1 | ||||
| -rw-r--r-- | src/server/file_resolve.odin | 3 | ||||
| -rw-r--r-- | src/server/locals.odin | 1 | ||||
| -rw-r--r-- | src/server/position_context.odin | 1 | ||||
| -rw-r--r-- | src/server/semantic_tokens.odin | 3 | ||||
| -rw-r--r-- | src/server/unmarshal.odin | 1 |
10 files changed, 17 insertions, 7 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index 40d3f83..d025108 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package odin_printer import "core:fmt" @@ -1007,10 +1008,10 @@ visit_stmt :: proc( } //Special case for when the if statement ends with a call expression - /* + /* if my_function( - - ) { + + ) { } */ if v.init != nil && is_value_decl_statement_ending_with_call(v.init) || @@ -2081,11 +2082,11 @@ visit_struct_field_list :: proc(p: ^Printer, list: ^ast.Field_List, options := L } name_options := List_Options{.Add_Comma} - + if (.Enforce_Newline in options) { if p.config.align_struct_fields { alignment := get_possible_field_alignment(list.list) - + if alignment > 0 { length := 0 for name in field.names { diff --git a/src/server/analysis.odin b/src/server/analysis.odin index 000080d..c9cd863 100644 --- a/src/server/analysis.odin +++ b/src/server/analysis.odin @@ -1,4 +1,5 @@ #+feature dynamic-literals +#+feature using-stmt package server import "core:fmt" diff --git a/src/server/ast.odin b/src/server/ast.odin index 42c0ba6..07f2169 100644 --- a/src/server/ast.odin +++ b/src/server/ast.odin @@ -1,4 +1,5 @@ #+feature dynamic-literals +#+feature using-stmt package server import "core:fmt" diff --git a/src/server/clone.odin b/src/server/clone.odin index 215ab42..5a9a3ba 100644 --- a/src/server/clone.odin +++ b/src/server/clone.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "base:intrinsics" diff --git a/src/server/collector.odin b/src/server/collector.odin index 37d3cd8..c06fbf0 100644 --- a/src/server/collector.odin +++ b/src/server/collector.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "core:mem" diff --git a/src/server/file_resolve.odin b/src/server/file_resolve.odin index 8c7de51..f381aac 100644 --- a/src/server/file_resolve.odin +++ b/src/server/file_resolve.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "core:odin/ast" @@ -58,7 +59,7 @@ resolve_ranged_file :: proc( if range.start.line - margin <= decl.end.line && decl.pos.line <= range.end.line + margin { resolve_decl(&position_context, &ast_context, document, decl, &symbols, .None, allocator) clear(&ast_context.locals) - } + } } return symbols diff --git a/src/server/locals.odin b/src/server/locals.odin index 3e3d126..e24d27b 100644 --- a/src/server/locals.odin +++ b/src/server/locals.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "core:log" diff --git a/src/server/position_context.odin b/src/server/position_context.odin index 7670e79..7687d01 100644 --- a/src/server/position_context.odin +++ b/src/server/position_context.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "core:log" diff --git a/src/server/semantic_tokens.odin b/src/server/semantic_tokens.odin index 885588d..5ff822b 100644 --- a/src/server/semantic_tokens.odin +++ b/src/server/semantic_tokens.odin @@ -5,6 +5,7 @@ https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/spe */ +#+feature using-stmt package server import "core:fmt" @@ -494,7 +495,7 @@ visit_bit_field_fields :: proc(node: ast.Bit_Field_Type, builder: ^SemanticToken visit_import_decl :: proc(decl: ^ast.Import_Decl, builder: ^SemanticTokenBuilder) { /* hightlight the namespace in the import declaration - + import "pkg" ^^^ import "core:fmt" diff --git a/src/server/unmarshal.odin b/src/server/unmarshal.odin index 04e155d..9025428 100644 --- a/src/server/unmarshal.odin +++ b/src/server/unmarshal.odin @@ -1,3 +1,4 @@ +#+feature using-stmt package server import "base:runtime" |