MCPcopy
hub / github.com/google/go-jsonnet / StaticError

Interface StaticError

internal/errors/static_error.go:31–38  ·  view source on GitHub ↗

StaticError StaticError represents an error during parsing/lexing or static analysis. TODO(sbarzowski) Make it possible to have multiple static errors and warnings

Source from the content-addressed store, hash-verified

29// StaticError represents an error during parsing/lexing or static analysis.
30// TODO(sbarzowski) Make it possible to have multiple static errors and warnings
31type StaticError interface {
32 // WithContext returns a new StaticError with additional context before the error message.
33 WithContext(string) StaticError
34 // Error returns the string representation of a StaticError.
35 Error() string
36 // Loc returns the place in the source code that triggerred the error.
37 Loc() ast.LocationRange
38}
39
40type staticError struct {
41 msg string

Callers 10

makeUnexpectedErrorFunction · 0.65
parseParameterMethod · 0.65
locFromTokenASTFunction · 0.65
tokenStringToAstFunction · 0.65
parseMethod · 0.65
desugarArrayCompFunction · 0.65
desugarObjectCompFunction · 0.65
desugarFunction · 0.65
analyzeVisitFunction · 0.65
LiteralStringMethod · 0.65

Implementers 1

staticErrorinternal/errors/static_error.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…