Merge pull request #834 from travisstaloch/fix-for-issues-754-832
analysis.zig getPositionContext() - check for null
This commit is contained in:
commit
e65d5c5c23
@ -1612,6 +1612,7 @@ pub fn getPositionContext(allocator: std.mem.Allocator, text: []const u8, doc_in
|
|||||||
.field_access => {},
|
.field_access => {},
|
||||||
.other => {},
|
.other => {},
|
||||||
.global_error_set => {},
|
.global_error_set => {},
|
||||||
|
.label => {},
|
||||||
else => curr_ctx.ctx = .{
|
else => curr_ctx.ctx = .{
|
||||||
.field_access = tokenLocAppend(curr_ctx.ctx.loc().?, tok),
|
.field_access = tokenLocAppend(curr_ctx.ctx.loc().?, tok),
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user