ParserMessage

Overview

Holds errors the parser encountered while parsing the source code. When parsing an EcmaScript source file, the parser uses a list of these classes to store the errors it found while parsing the file.

Location

 

constructor

 

constructor(aPosition: Position)

 

ParserMessage(Position aPosition)

 

Sub New(aPosition As Position)

Parameters:

  • aPosition:

Code

The error code, these are unique numbers assigned to a given error message kind. (Two of the same kind will have the same number)

 

property Code: Int32 read;

 

Int32 Code { get; }

 

ReadOnly Property Code() As Int32

IntToString

 

method IntToString: String

 

String IntToString()

 

Function IntToString() As String

IsError

If true, this message is an error, if false it's a warning.

 

property IsError: Boolean read;

 

Boolean IsError { get; }

 

ReadOnly Property IsError() As Boolean

Position

Position this error occured at.

 

property Position: Position read;

 

Position Position { get; }

 

ReadOnly Property Position() As Position

ToString

 

method ToString: String

 

String ToString()

 

Function ToString() As String

 

Code

The error code, these are unique numbers assigned to a given error message kind. (Two of the same kind will have the same number)

 

property Code: Int32 read;

 

Int32 Code { get; }

 

ReadOnly Property Code() As Int32

IsError

If true, this message is an error, if false it's a warning.

 

property IsError: Boolean read;

 

Boolean IsError { get; }

 

ReadOnly Property IsError() As Boolean

Position

Position this error occured at.

 

property Position: Position read;

 

Position Position { get; }

 

ReadOnly Property Position() As Position

 

constructor

 

constructor(aPosition: Position)

 

ParserMessage(Position aPosition)

 

Sub New(aPosition As Position)

Parameters:

  • aPosition:

IntToString

 

method IntToString: String

 

String IntToString()

 

Function IntToString() As String

ToString

 

method ToString: String

 

String ToString()

 

Function ToString() As String