BuildContext class

The BuildContext is the context for building parsers.

Constructors

BuildContext.new({required Allocator globalAllocator, required StringSink globalOutput, required Allocator localAllocator})

Properties

cache Map<String, Object?>
final
globalAllocator Allocator
final
globalOutput StringSink
A global output.
final
hashCode int
The hash code for this object.
no setterinherited
localAllocator Allocator
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

initializeCache<T>(String key, T value) → T
Initializes the cache if it has not been initialized and returns the initial value or an already existing value.
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