CodeToken class

A single span of source code and its syntactic kind.

Constructors

CodeToken(String text, TokenKind kind)
Creates a token spanning text with syntactic kind kind.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → TokenKind
The syntactic classification of this token.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The raw source text of this token.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited