Documentation ¶
Index ¶
- type CompileTimeMessage
- type ErrorScope
- func (e *ErrorScope) GetSummary() string
- func (s *ErrorScope) HasErrors() bool
- func (s *ErrorScope) HasWarnings() bool
- func (s *ErrorScope) NewCompileTimeError(title string, message string, pos lexer.Position)
- func (s *ErrorScope) NewCompileTimeWarning(title string, message string, pos lexer.Position)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompileTimeMessage ¶
type CompileTimeMessage struct { Message string Scope *ErrorScope Title string Pos lexer.Position }
func (*CompileTimeMessage) GetError ¶
func (c *CompileTimeMessage) GetError() string
func (*CompileTimeMessage) GetWarning ¶
func (c *CompileTimeMessage) GetWarning() string
type ErrorScope ¶
type ErrorScope struct { Name string CompileTimeErrors []*CompileTimeMessage CompileTimeWarnings []*CompileTimeMessage SourceName string Source *string }
func NewErrorScope ¶
func NewErrorScope(name string, sourceName string, source string) *ErrorScope
func (*ErrorScope) GetSummary ¶
func (e *ErrorScope) GetSummary() string
func (*ErrorScope) HasErrors ¶
func (s *ErrorScope) HasErrors() bool
func (*ErrorScope) HasWarnings ¶
func (s *ErrorScope) HasWarnings() bool
func (*ErrorScope) NewCompileTimeError ¶
func (s *ErrorScope) NewCompileTimeError(title string, message string, pos lexer.Position)
func (*ErrorScope) NewCompileTimeWarning ¶
func (s *ErrorScope) NewCompileTimeWarning(title string, message string, pos lexer.Position)
Click to show internal directories.
Click to hide internal directories.