HTFunctionDeclaration constructor
HTFunctionDeclaration({
- required String internalName,
- String? id,
- String? classId,
- HTDeclarationNamespace? closure,
- HTSource? source,
- String? documentation,
- bool isExternal = false,
- bool isStatic = false,
- bool isConst = false,
- bool isTopLevel = false,
- FunctionCategory category = FunctionCategory.normal,
- String? externalTypeId,
- List<
HTGenericTypeParameter> genericTypeParameters = const [], - bool hasParamDecls = true,
- Map<
String, HTAbstractParameter> paramDecls = const {}, - required HTFunctionType declType,
- bool isAsync = false,
- bool isField = false,
- bool isAbstract = false,
- bool isVariadic = false,
- int minArity = 0,
- int maxArity = 0,
- 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;