CodeBlock

org.nlogo.compile.api.CodeBlock
class CodeBlock(val code: String, val sourceLocation: SourceLocation) extends Expression

represents a set of code that should not be evaluated, but can be lexed and tokenized. This is an expression, and can be used as an argument to commands and reports.

Attributes

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

Members list

Value members

Concrete methods

Attributes

Source
AstNode.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

Source
AstNode.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
AstNode.scala

Inherited methods

def end: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala
def start: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Concrete fields

val code: String

Attributes

Source
AstNode.scala