FuncDecl constructor

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

Implementation

FuncDecl(
  this.internalName, {
  this.id,
  this.classId,
  this.explicityNamespaceId,
  this.genericTypeParameters = const [],
  this.externalTypeId,
  this.redirectingConstructorCall,
  this.paramDecls = const [],
  this.hasParamDecls = true,
  this.returnType,
  this.minArity = 0,
  this.maxArity = 0,
  this.isExpressionBody = false,
  this.definition,
  this.isAsync = false,
  this.isExternal = false,
  this.isStatic = false,
  this.isConst = false,
  this.isVariadic = false,
  this.isPrivate = false,
  this.isTopLevel = false,
  this.isField = false,
  this.category = FunctionCategory.normal,
  super.isStatement,
  super.hasEndOfStmtMark,
  super.source,
  super.line = 0,
  super.column = 0,
  super.offset = 0,
  super.length = 0,
}) : super(
        InternalIdentifier.functionDeclaration,
        isBlock: (!isExpressionBody && definition != null),
      );