public virtual void OutAValueLvalue(AValueLvalue node)
 {
     DefaultOut(node);
 }
 public override void CaseAValueLvalue(AValueLvalue node)
 {
     InAValueLvalue(node);
     if (node.GetToken() != null)
     {
         node.GetToken().Apply(this);
     }
     OutAValueLvalue(node);
 }
 public virtual void InAValueLvalue(AValueLvalue node)
 {
     DefaultIn(node);
 }
示例#4
0
 public override void CaseAValueLvalue(AValueLvalue node)
 {
     //Must be in a property setter
     AABlock lastBlockParent = Util.GetLastAncestor<AABlock>(node);
     APropertyDecl property = Util.GetAncestor<APropertyDecl>(node);
     if (property == null || property.GetSetter() != lastBlockParent)
     {
         errors.Add(new ErrorCollection.Error(node.GetToken(), currentSourceFile, LocRM.GetString("ErrorText187")));
     }
     base.CaseAValueLvalue(node);
 }
 public virtual void CaseAValueLvalue(AValueLvalue node)
 {
     DefaultCase(node);
 }
示例#6
0
 ArrayList New589()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TValue tvalueNode4 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode3 = new AValueLvalue (
       tvalueNode4
     );
     ALvalueExp pexpNode2 = new ALvalueExp (
       plvalueNode3
     );
     TArrow tarrowNode6 = (TArrow)nodeArrayList2[0];
     AArrowDotType pdottypeNode5 = new AArrowDotType (
       tarrowNode6
     );
     TIdentifier tidentifierNode7 = (TIdentifier)nodeArrayList3[0];
     AStructLvalue plvalueNode1 = new AStructLvalue (
       pexpNode2,
       pdottypeNode5,
       tidentifierNode7
     );
     nodeList.Add(plvalueNode1);
     return nodeList;
 }
 public override void OutAValueLvalue(AValueLvalue node)
 {
     data.LvalueTypes[node] = Util.GetAncestor<APropertyDecl>(node).GetType();
     base.OutAValueLvalue(node);
 }
示例#8
0
 ArrayList New543()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TypedList listNode3 = new TypedList();
     TypedList listNode7 = new TypedList();
     TypedList listNode9 = new TypedList();
     TypedList listNode11 = new TypedList();
     TConst tconstNode2 = (TConst)nodeArrayList1[0];
     TValue tvalueNode5 = (TValue)nodeArrayList2[0];
     AValueLvalue plvalueNode4 = new AValueLvalue (
       tvalueNode5
     );
     TypedList listNode8 = (TypedList)nodeArrayList3[0];
     if ( listNode8 != null )
     {
     listNode9.AddAll(listNode8);
     }
     TypedList listNode10 = (TypedList)nodeArrayList4[0];
     if ( listNode10 != null )
     {
     listNode11.AddAll(listNode10);
     }
     AShadySAssignmentExp pexpNode1 = new AShadySAssignmentExp (
       tconstNode2,
       listNode3,
       plvalueNode4,
       null,
       listNode7,
       listNode9,
       listNode11
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#9
0
 ArrayList New544()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList7 = (ArrayList) Pop();
     ArrayList nodeArrayList6 = (ArrayList) Pop();
     ArrayList nodeArrayList5 = (ArrayList) Pop();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TypedList listNode3 = new TypedList();
     TypedList listNode8 = new TypedList();
     TypedList listNode10 = new TypedList();
     TypedList listNode12 = new TypedList();
     TConst tconstNode2 = (TConst)nodeArrayList1[0];
     TValue tvalueNode5 = (TValue)nodeArrayList2[0];
     AValueLvalue plvalueNode4 = new AValueLvalue (
       tvalueNode5
     );
     TLt tltNode6 = (TLt)nodeArrayList3[0];
     TypedList listNode7 = (TypedList)nodeArrayList4[0];
     if ( listNode7 != null )
     {
     listNode8.AddAll(listNode7);
     }
     TypedList listNode9 = (TypedList)nodeArrayList6[0];
     if ( listNode9 != null )
     {
     listNode10.AddAll(listNode9);
     }
     TypedList listNode11 = (TypedList)nodeArrayList7[0];
     if ( listNode11 != null )
     {
     listNode12.AddAll(listNode11);
     }
     AShadySAssignmentExp pexpNode1 = new AShadySAssignmentExp (
       tconstNode2,
       listNode3,
       plvalueNode4,
       tltNode6,
       listNode8,
       listNode10,
       listNode12
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#10
0
 ArrayList New477()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TValue tvalueNode3 = (TValue)nodeArrayList2[0];
     AValueLvalue plvalueNode2 = new AValueLvalue (
       tvalueNode3
     );
     TMinusMinus tminusminusNode5 = (TMinusMinus)nodeArrayList1[0];
     APreDecIncDecOp pincdecopNode4 = new APreDecIncDecOp (
       tminusminusNode5
     );
     AIncDecExp pexpNode1 = new AIncDecExp (
       plvalueNode2,
       pincdecopNode4
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#11
0
 ArrayList New516()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TAssign tassignNode2 = (TAssign)nodeArrayList2[0];
     TValue tvalueNode4 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode3 = new AValueLvalue (
       tvalueNode4
     );
     PExp pexpNode5 = (PExp)nodeArrayList3[0];
     AAssignmentExp pexpNode1 = new AAssignmentExp (
       tassignNode2,
       plvalueNode3,
       pexpNode5
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#12
0
 ArrayList New440()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TValue tvalueNode3 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode2 = new AValueLvalue (
       tvalueNode3
     );
     TPlusPlus tplusplusNode5 = (TPlusPlus)nodeArrayList2[0];
     APostIncIncDecOp pincdecopNode4 = new APostIncIncDecOp (
       tplusplusNode5
     );
     AIncDecExp pexpNode1 = new AIncDecExp (
       plvalueNode2,
       pincdecopNode4
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#13
0
 ArrayList New428()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TValue tvalueNode3 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode2 = new AValueLvalue (
       tvalueNode3
     );
     ALvalueExp pexpNode1 = new ALvalueExp (
       plvalueNode2
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#14
0
 ArrayList New393()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList6 = (ArrayList) Pop();
     ArrayList nodeArrayList5 = (ArrayList) Pop();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TypedList listNode9 = new TypedList();
     TValue tvalueNode4 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode3 = new AValueLvalue (
       tvalueNode4
     );
     ALvalueExp pexpNode2 = new ALvalueExp (
       plvalueNode3
     );
     TArrow tarrowNode6 = (TArrow)nodeArrayList2[0];
     AArrowDotType pdottypeNode5 = new AArrowDotType (
       tarrowNode6
     );
     TIdentifier tidentifierNode7 = (TIdentifier)nodeArrayList3[0];
     TypedList listNode8 = (TypedList)nodeArrayList5[0];
     if ( listNode8 != null )
     {
     listNode9.AddAll(listNode8);
     }
     ANonstaticInvokeExp pexpNode1 = new ANonstaticInvokeExp (
       pexpNode2,
       pdottypeNode5,
       tidentifierNode7,
       listNode9
     );
     nodeList.Add(pexpNode1);
     return nodeList;
 }
示例#15
0
 ArrayList New342()
 {
     ArrayList nodeList = new ArrayList();
     ArrayList nodeArrayList4 = (ArrayList) Pop();
     ArrayList nodeArrayList3 = (ArrayList) Pop();
     ArrayList nodeArrayList2 = (ArrayList) Pop();
     ArrayList nodeArrayList1 = (ArrayList) Pop();
     TLBracket tlbracketNode2 = (TLBracket)nodeArrayList2[0];
     TValue tvalueNode5 = (TValue)nodeArrayList1[0];
     AValueLvalue plvalueNode4 = new AValueLvalue (
       tvalueNode5
     );
     ALvalueExp pexpNode3 = new ALvalueExp (
       plvalueNode4
     );
     PExp pexpNode6 = (PExp)nodeArrayList3[0];
     AArrayLvalue plvalueNode1 = new AArrayLvalue (
       tlbracketNode2,
       pexpNode3,
       pexpNode6
     );
     nodeList.Add(plvalueNode1);
     return nodeList;
 }
 public override void OutAValueLvalue(AValueLvalue node)
 {
     ALocalLvalue replacer = new ALocalLvalue(new TIdentifier("value"));
     node.ReplaceBy(replacer);
     data.LocalLinks[replacer] = valueDecl;
     data.LvalueTypes[replacer] = valueDecl.GetType();
 }