Merge pull request #834 from travisstaloch/fix-for-issues-754-832

analysis.zig getPositionContext() - check for null
This commit is contained in:
Lee Cannon
2022-12-18 00:56:30 +00:00
committed by GitHub

View File

@@ -1612,6 +1612,7 @@ pub fn getPositionContext(allocator: std.mem.Allocator, text: []const u8, doc_in
.field_access => {},
.other => {},
.global_error_set => {},
.label => {},
else => curr_ctx.ctx = .{
.field_access = tokenLocAppend(curr_ctx.ctx.loc().?, tok),
},