TemplateTag class final

A mustache variable in a template file, as the scan found it: the tag of a socket, whose name starts with smf, or another variable, such as a variable of a role's render hook.

Constructors

TemplateTag({required String name, required String path, required int offset, required int line, required bool triple, int column = 0, List<String> sections = const [], bool afterBrace = false})
Creates the variable name found at offset of the file at path.
const

Properties

afterBrace → bool
Whether a { comes right before the variable, which mustache reads as part of the variable's braces.
final
column → int
The column of the variable's opening braces in its line, from 0.
final
hashCode → int
The hash code for this object.
no setterinherited
isSocketTag → bool
Whether the name is meant as the tag of a socket: it starts with smf.
no setter
line → int
The line of the variable, from 1.
final
name → String
The name of the variable, such as smf_app_entry__bootstrap_platform.
final
offset → int
The offset of the variable's opening braces in the file.
final
path → String
The path of the template file in its brick.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sections → List<String>
The names of the mustache sections the variable is in, outermost first.
final
triple → bool
Whether the variable has three braces, which mustache does not escape. {{& name}}, which mustache does not escape either, counts as two.
final

Methods

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