VariableDeclaration constructor

VariableDeclaration(
  1. String name,
  2. Expression expression,
  3. FileSpan span, {
  4. String? namespace,
  5. bool guarded = false,
  6. bool global = false,
  7. 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.");
  }
}