v1/src/compiler/output/output_ast library
Classes
- AbstractClassPart
- ArrayType
- BinaryOperatorExpr
- BuiltinType
- CastExpr
- ClassField
- ClassGetter
- ClassMethod
- ClassStmt
- CommentStmt
- ConditionalExpr
- Constructor
- DeclareFunctionStmt
- DeclareVarStmt
- EscapedString
- A literal string whose value has been manually escaped.
- Expression
- ExpressionStatement
-
ExpressionTransformer<
C> -
ExpressionVisitor<
R, C> - ExternalExpr
- ExternalType
- FnParam
- FunctionExpr
- FunctionType
- IfNullExpr
- Represents the ?? expression in Dart
- IfStmt
- InstantiateExpr
- InvokeFunctionExpr
- InvokeMemberMethodExpr
- InvokeMethodExpr
- LiteralArrayExpr
- LiteralExpr
- LiteralMapExpr
- LiteralVargsExpr
- Similar to LiteralArrayExpr, but without wrapping in brackets.
- MapType
- NamedExpr
- NotExpr
- NotNullExpr
- OutputType
- ReadClassMemberExpr
- ReadKeyExpr
- ReadPropExpr
- ReadStaticMemberExpr
- ReadVarExpr
-
RecursiveExpressionVisitor<
C> - ReturnStatement
- SpreadExpr
- Statement
-
StatementVisitor<
R, C> - ThrowStmt
- TryCatchStmt
- TypeParameter
- A generic type parameter.
-
TypeVisitor<
R, C> - WriteClassMemberExpr
- WriteIfNullExpr
- WriteKeyExpr
- WritePropExpr
- WriteStaticMemberExpr
- WriteVarExpr
Enums
- BinaryOperator
- // Expressions
- BuiltinMethod
- BuiltinTypeName
- BuiltinVar
- StmtModifier
- Modifiers applied to declarations (not truly statements).
- TypeModifier
- Supported modifiers for OutputType.
Constants
- BOOL_TYPE → const BuiltinType
- DOUBLE_TYPE → const BuiltinType
- DYNAMIC_TYPE → const BuiltinType
- FUNCTION_TYPE → const BuiltinType
- INT_TYPE → const BuiltinType
- NEVER_TYPE → const BuiltinType
- NULL_TYPE → const BuiltinType
- NUMBER_TYPE → const BuiltinType
- OBJECT_TYPE → const BuiltinType
- STRING_TYPE → const BuiltinType
- VOID_TYPE → const BuiltinType
Properties
- CATCH_ERROR_VAR ↔ ReadVarExpr
-
getter/setter pair
- CATCH_STACK_VAR ↔ ReadVarExpr
-
getter/setter pair
- NULL_EXPR ↔ LiteralExpr
-
getter/setter pair
- SUPER_EXPR ↔ ReadVarExpr
-
getter/setter pair
- THIS_EXPR ↔ ReadVarExpr
-
getter/setter pair
Functions
-
escapedString(
String value) → LiteralExpr -
findReadVarNames(
List< Statement> stmts) → Set<String?> -
findWriteVarNames(
List< Statement> stmts) → Set<String?> -
fn(
List< FnParam> params, List<Statement> body, [OutputType? type]) → FunctionExpr -
importExpr(
CompileIdentifierMetadata id, {List< OutputType> ? typeParams}) → ExternalExpr -
importType(
CompileIdentifierMetadata? id, [List< OutputType> ? typeParams, List<TypeModifier> ? typeModifiers]) → ExternalType? -
literal(
dynamic value, [OutputType? type]) → LiteralExpr -
literalArr(
List< Expression> values, [OutputType? type]) → LiteralArrayExpr -
literalMap(
List< List> values, [MapType? type]) → LiteralMapExpr -
literalVargs(
List< Expression> values) → LiteralVargsExpr -
not(
Expression expr) → NotExpr -
replaceVarInStatement(
String varName, Expression newValue, Statement statement) → Statement -
variable(
String? name, [OutputType? type]) → ReadVarExpr