FuncDecl constructor

FuncDecl(
  1. String internalName, {
  2. IdentifierExpr? id,
  3. String? classId,
  4. List<GenericTypeParameterExpr> genericTypeParameters = const [],
  5. String? externalTypeId,
  6. RedirectingConstructorCallExpr? redirectingCtorCallExpr,
  7. List<ParamDecl> paramDecls = const [],
  8. bool hasParamDecls = true,
  9. TypeExpr? returnType,
  10. int minArity = 0,
  11. int maxArity = 0,
  12. bool isExpressionBody = false,
  13. bool hasEndOfStmtMark = false,
  14. ASTNode? definition,
  15. bool isAsync = false,
  16. bool isField = false,
  17. bool isExternal = false,
  18. bool isStatic = false,
  19. bool isConst = false,
  20. bool isVariadic = false,
  21. bool isPrivate = false,
  22. bool isTopLevel = false,
  23. FunctionCategory category = FunctionCategory.normal,
  24. HTSource? source,
  25. int line = 0,
  26. int column = 0,
  27. int offset = 0,
  28. 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);