StaticError StaticError represents an error during parsing/lexing or static analysis. TODO(sbarzowski) Make it possible to have multiple static errors and warnings
| 29 | // StaticError represents an error during parsing/lexing or static analysis. |
| 30 | // TODO(sbarzowski) Make it possible to have multiple static errors and warnings |
| 31 | type 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 | |
| 40 | type staticError struct { |
| 41 | msg string |
no outgoing calls
no test coverage detected
searching dependent graphs…