FuncDecl constructor
FuncDecl(
- String internalName, {
- IdentifierExpr? id,
- String? classId,
- List<
GenericTypeParameterExpr> genericTypeParameters = const [], - String? externalTypeId,
- RedirectingConstructorCallExpr? redirectingCtorCallExpr,
- List<
ParamDecl> paramDecls = const [], - bool hasParamDecls = true,
- TypeExpr? returnType,
- int minArity = 0,
- int maxArity = 0,
- bool isExpressionBody = false,
- bool hasEndOfStmtMark = false,
- ASTNode? definition,
- bool isAsync = false,
- bool isField = false,
- bool isExternal = false,
- bool isStatic = false,
- bool isConst = false,
- bool isVariadic = false,
- bool isPrivate = false,
- bool isTopLevel = false,
- FunctionCategory category = FunctionCategory.normal,
- HTSource? source,
- int line = 0,
- int column = 0,
- int offset = 0,
- int length = 0,
Implementation
FuncDecl(
this.internalName, {
this.id,
this.classId,
this.genericTypeParameters = const [],
this.externalTypeId,
this.redirectingCtorCallExpr,
this.paramDecls = const [],
this.hasParamDecls = true,
this.returnType,
this.minArity = 0,
this.maxArity = 0,
this.isExpressionBody = false,
this.hasEndOfStmtMark = false,
this.definition,
this.isAsync = false,
this.isField = false,
this.isExternal = false,
this.isStatic = false,
this.isConst = false,
this.isVariadic = false,
this.isPrivate = false,
this.isTopLevel = false,
this.category = FunctionCategory.normal,
super.source,
super.line = 0,
super.column = 0,
super.offset = 0,
super.length = 0,
}) : super(Semantic.functionDeclaration);