HTFunctionDeclaration constructor

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

Implementation

HTFunctionDeclaration({
  required this.internalName,
  super.id,
  super.classId,
  super.closure,
  super.source,
  super.documentation,
  super.isExternal = false,
  super.isStatic = false,
  super.isConst = false,
  super.isTopLevel = false,
  this.category = FunctionCategory.normal,
  this.externalTypeId,
  this.genericTypeParameters = const [],
  this.hasParamDecls = true,
  Map<String, HTAbstractParameter> paramDecls = const {},
  required this.declType,
  this.isAsync = false,
  this.isField = false,
  this.isAbstract = false,
  this.isVariadic = false,
  this.minArity = 0,
  this.maxArity = 0,
  this.namespace,
}) : _paramDecls = paramDecls;