CodeUnit<T> class abstract

A Code Unit, with a source code in a specific language. See SourceCodeUnit and BinaryCodeUnit.

Implementers
Available Extensions

Constructors

CodeUnit(String language, T code, {String id = '', String? namespace})

Properties

code → T
The code.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The ID of this Code Unit, usually a file path.
final
language String
Programming language of the code.
final
namespace String?
The namespace of this code.
getter/setter pair
root ASTRoot?
The ASTRoot corresponding to the code.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generate<O extends Object, S extends ApolloCodeUnitStorage<D>, D extends Object>(ApolloGenerator<O, S, D> codeGenerator) → O
Generates the code of this ASTRoot (root), using codeGenerator.
generateCode(ApolloCodeGenerator codeGenerator) StringBuffer
Generates the code of this ASTRoot (root), using codeGenerator.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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