errors

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StaticError

type StaticError struct {
	Loc ast.LocationRange
	Msg string
}

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

func MakeStaticError

func MakeStaticError(msg string, lr ast.LocationRange) StaticError

MakeStaticError returns a StaticError with a message and a LocationRange.

func MakeStaticErrorMsg

func MakeStaticErrorMsg(msg string) StaticError

MakeStaticErrorMsg returns a StaticError with a message.

func (StaticError) Error

func (err StaticError) Error() string

Error returns the string representation of a StaticError.

Jump to

Keyboard shortcuts

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