RecursiveMacroException class
Exception thrown when a recursive macro definition is detected.
This exception includes the chain of macro names that form the recursion to help identify the cycle in the definitions.
- Inheritance
-
- Object
- MacroException
- RecursiveMacroException
Constructors
-
RecursiveMacroException.new(List<
String> macroChain, [Location? location]) -
Creates a new RecursiveMacroException with the given recursion
macroChain
and optionallocation
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- location → Location?
-
The source code location where the error occurred.
May be null if the location is not known or relevant.
finalinherited
-
macroChain
→ List<
String> -
The sequence of macro names that form the recursive chain.
For example:
"A", "B", "C", "A"
represents A -> B -> C -> A recursion.final - message → String
-
A descriptive message explaining the error.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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