HTFunctionDeclaration constructor

HTFunctionDeclaration({
  1. required String internalName,
  2. String? id,
  3. String? classId,
  4. String? explicityNamespaceId,
  5. HTDeclarationNamespace? closure,
  6. HTSource? source,
  7. String? documentation,
  8. bool isPrivate = false,
  9. bool isExternal = false,
  10. bool isStatic = false,
  11. bool isConst = false,
  12. bool isTopLevel = false,
  13. bool isField = false,
  14. FunctionCategory category = FunctionCategory.normal,
  15. String? externalTypeId,
  16. List<HTGenericTypeParameter> genericTypeParameters = const [],
  17. bool hasParamDecls = true,
  18. Map<String, HTAbstractParameter> paramDecls = const {},
  19. HTFunctionType? declType,
  20. bool isAsync = false,
  21. bool isAbstract = false,
  22. bool isVariadic = false,
  23. int minArity = 0,
  24. int maxArity = 0,
})

Implementation

HTFunctionDeclaration({
  required this.internalName,
  super.id,
  super.classId,
  this.explicityNamespaceId,
  super.closure,
  super.source,
  super.documentation,
  super.isPrivate,
  super.isExternal,
  super.isStatic,
  super.isConst,
  super.isTopLevel,
  super.isField,
  this.category = FunctionCategory.normal,
  this.externalTypeId,
  this.genericTypeParameters = const [],
  this.hasParamDecls = true,
  this.paramDecls = const {},
  HTFunctionType? declType,
  this.isAsync = false,
  this.isAbstract = false,
  this.isVariadic = false,
  this.minArity = 0,
  this.maxArity = 0,
}) : _declType = declType ?? HTFunctionType();