/// <summary> /// Initializes a new instance of the <see cref="ZincVarDeclItem"/> class with a given <see cref="ZincTypeInstExprAndIdent"/> /// that describes the name and the type of the variable and optionally a <see cref="IZincExp"/> instance that describes /// the value that must be assigned to the variable. /// </summary> /// <param name="tia">A <see cref="ZincTypeInstExprAndIdent"/> instance that describes the name and type of the variable.</param> /// <param name="exp">An <see cref="IZincExp"/> instance that describes the value assigned to the variable.</param> public ZincVarDeclItem(ZincTypeInstExprAndIdent tia, IZincExp exp) : this(tia, null, exp) { }
/// <summary> /// Initializes a new instance of the <see cref="ZincVarDeclItem"/> class with a given <see cref="ZincTypeInstExprAndIdent"/> /// that describes the variable and type to initialize, a <see cref="ZincAnnotation"/> instance that annotates the declaration /// and optionally an <see cref="IZincExp"/> instance that describes the value that must be assigned. /// </summary> /// <param name="tia">A type-identifier tuple that describes the name and the type of the variable.</param> /// <param name="anns">The annotations of the variable declaration.</param> /// <param name="exp">Optionally, an expression that assigns a value to the variable.</param> public ZincVarDeclItem(ZincTypeInstExprAndIdent tia, ZincAnnotations anns = null, IZincExp exp = null) : base(anns, exp, tia) { this.TypeInstExprAndIdent.Ident.Usage = ZincIdentUsage.GlobalVariable; }