Add explicit path import traversal
This commit is contained in:
5
parse.go
5
parse.go
@@ -30,6 +30,7 @@ func defaultParseLimits() parseLimits {
|
||||
type parsedSource struct {
|
||||
document *document.Node
|
||||
source *SourceInfo
|
||||
bytes int64
|
||||
}
|
||||
|
||||
func parseSource(source Source, sourceID string, limits parseLimits) (parsedSource, []Diagnostic) {
|
||||
@@ -60,7 +61,7 @@ func parseSource(source Source, sourceID string, limits parseLimits) (parsedSour
|
||||
})
|
||||
}
|
||||
}
|
||||
return parsedSource{source: read.info}, canonicalDiagnostics(diagnostics)
|
||||
return parsedSource{source: read.info, bytes: int64(len(read.data))}, canonicalDiagnostics(diagnostics)
|
||||
}
|
||||
return parsedSource{document: root, source: read.info}, nil
|
||||
return parsedSource{document: root, source: read.info, bytes: int64(len(read.data))}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user