DmxInvocation class final

Everything one expansion receives dartmacros.api.

Constructors

DmxInvocation(DmxDeclaration declaration, {Map<String, String> args = const {}, String memberIndent = ' ', DmxTemplates templates = const _DetachedTemplates()})
Builds an invocation.
const

Properties

args Map<String, String>
The @dmx('name', {…}) map, labels to raw source, unevaluated.
final
declaration DmxDeclaration
The declaration the @dmx sits on.
final
hashCode int
The hash code for this object.
no setterinherited
memberIndent String
The indentation each emitted member line should carry.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templates DmxTemplates
dmx's Mustache engine, for a macro that lays its output out with a template instead of by hand dartmacros.render.
final

Methods

arg(String label) String?
The raw source of one @dmx argument, or null when absent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stringArg(String label) String?
One @dmx argument with surrounding string quotes stripped.
toString() String
A string representation of this object.
inherited

Operators

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