HTVariable constructor
HTVariable({
- required String id,
- HTInterpreter? interpreter,
- String? fileName,
- String? moduleName,
- String? classId,
- HTNamespace? closure,
- String? documentation,
- HTType? declType,
- dynamic value,
- bool isPrivate = false,
- bool isExternal = false,
- bool isStatic = false,
- bool isConst = false,
- bool isMutable = false,
- bool isTopLevel = false,
- bool lateFinalize = false,
- int? definitionIp,
- int? definitionLine,
- int? definitionColumn,
Create a HTVariable.
If it has initializer code, it will
have to be defined in a HTNamespace of an Interpreter
before it can be acessed within a script.
Implementation
HTVariable(
{required super.id,
HTInterpreter? interpreter,
String? fileName,
String? moduleName,
super.classId,
HTNamespace? closure,
super.documentation,
super.declType,
dynamic value,
super.isPrivate = false,
super.isExternal = false,
super.isStatic = false,
super.isConst = false,
super.isMutable = false,
super.isTopLevel = false,
super.lateFinalize = false,
int? definitionIp,
int? definitionLine,
int? definitionColumn})
: _closure = closure,
super(closure: closure) {
if (interpreter != null) {
this.interpreter = interpreter;
}
if (fileName != null) {
this.fileName = fileName;
}
if (moduleName != null) {
this.moduleName = moduleName;
}
this.definitionIp = definitionIp;
this.definitionLine = definitionLine;
this.definitionColumn = definitionColumn;
if (value != null) {
_value = value;
_isInitialized = true;
}
}