errors

package
v0.0.0-...-6155d41 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL