public override void OutALocalLvalue(ALocalLvalue node) { if (folding) { AALocalDecl local = data.LocalLinks[node]; if (local.GetConst() == null) { if (!isANewExp) { errors.Add( new ErrorCollection.Error(node.GetName(), LocRM.GetString("ErrorText61"), false), true); throw new ParserException(null, null); } } if (local.GetInit() == null)//An error will be given earlier { throw new ParserException(null, null); } local.GetInit().Apply(this); } }
public override void OutALocalLvalue(ALocalLvalue node) { if (folding) { AALocalDecl local = data.LocalLinks[node]; if (local.GetConst() == null) { if (!isANewExp) { errors.Add( new ErrorCollection.Error(node.GetName(), "Dimensions of array types must be constant expressions.", false), true); throw new ParserException(null, null); } } if (local.GetInit() == null)//An error will be given earlier { throw new ParserException(null, null); } local.GetInit().Apply(this); } }
public override void OutALocalLvalue(ALocalLvalue node) { node.GetName().Text = finalTrans.data.LocalLinks[node].GetName().Text; }