public AssignStatement DecompileAssign() { PopByte(); var left = DecompileExpression(); if (left == null || !typeof(SymbolReference).IsAssignableFrom(left.GetType())) return null; //ERROR ? var right = DecompileExpression(); if (right == null) return null; //ERROR ? var statement = new AssignStatement(left as SymbolReference, right, null, null); StatementLocations.Add(StartPositions.Pop(), statement); return statement; }
public bool VisitNode(AssignStatement node) { throw new NotImplementedException(); }
public bool VisitNode(AssignStatement node) { // reference = expression; Write(""); node.Target.AcceptVisitor(this); Append(" = "); node.Value.AcceptVisitor(this); return true; }