TagFieldGenerator class
Emits the code for reading a child tag from within a parent.
See MethodGenerator.methodBody for context.
The emitted code is in two parts:
- A variable declaration to hold the result
- The
case
statement that recognizes the tag and calls its parsing method.
Constructors
- TagFieldGenerator(CommonElement element, ClassElement method, LibraryReader sourceInfo)
Properties
- customCode → String
-
no setter
- element → CommonElement
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → ClassElement
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sourceInfo → LibraryReader
-
final
- toAction → String
-
Generate the case statement
no setter
- vardecl → String
-
Generate the variable declaration (which may be a list)
no setter
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