google / google/go-jsonnet

LocationRange is missing for object fields

Open
#456 4 comments 0 reactions 0 assignees View on GitHub
bug error reporting
Dominant language
Go
Stars
1.8k
Forks
263
PR merge metrics
No merged PRs in 30d

Description

In some cases, the `ast.Node` instances (especially the literals) returned by `SnippetToAST` don't have `LocRange` as seen in the following picture:

![image](https://user-images.githubusercontent.com/82745/92599199-979d7280-f2b2-11ea-9b5a-3a9cca7e0a1e.png)

In this case, it's a `ast.LiteralString` inside the `Name` of `ast.DesugaredObjectField`. Is this expected?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.