VariableDeclaration constructor
VariableDeclaration(
- String name,
- Expression expression,
- FileSpan span, {
- String? namespace,
- bool guarded = false,
- bool global = false,
- SilentComment? comment,
Implementation
VariableDeclaration(this.name, this.expression, this.span,
{this.namespace, bool guarded = false, bool global = false, this.comment})
: isGuarded = guarded,
isGlobal = global {
if (namespace != null && global) {
throw ArgumentError(
"Other modules' members can't be defined with !global.");
}
}