AmbiguousDelayedBlock

org.nlogo.parse.AmbiguousDelayedBlock
class AmbiguousDelayedBlock(val openBracket: Token, unterminatedTokens: Seq[Token], val internalScope: SymbolTable, val sourceLocation: SourceLocation) extends DelayedBlock

represents a block whose contents we have not yet parsed. Since correctly parsing a block requires knowing its expected type, we have to do it in two passes. It will eventually be resolved into an ReporterBlock, CommandBlock or a literal list.

Attributes

Source
DelayedBlock.scala
Graph
Supertypes
trait DelayedBlock
trait Expression
trait AstNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(openBracket: Token, unterminatedTokens: Seq[Token], internalScope: SymbolTable)

Attributes

Source
DelayedBlock.scala

Concrete methods

Attributes

Definition Classes
Source
DelayedBlock.scala

Inherited methods

def end: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala
def reportedType(): Int

returns the type of this expression. Generally synthesized from types of subexpressions.

returns the type of this expression. Generally synthesized from types of subexpressions.

Attributes

Inherited from:
DelayedBlock
Source
DelayedBlock.scala
def start: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Concrete fields

Attributes

Source
DelayedBlock.scala
lazy val isCommand: Boolean

Attributes

Source
DelayedBlock.scala

Attributes

Source
DelayedBlock.scala
lazy val tokens: Seq[Token]

Attributes

Source
DelayedBlock.scala