HTFunctionDeclaration constructor

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

Implementation

HTFunctionDeclaration({
  required this.internalName,
  super.id,
  super.classId,
  super.closure,
  super.source,
  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;