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
commit e65d5c5c23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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),
},