private static AstNode ParseHash(TokenStream stream) { stream.Expect (TokenClass.OpenBrace); HashExpression ret = new HashExpression (stream.Location); while (!stream.Match (TokenClass.CloseBrace)) { ret.Add (ParseExpression (stream)); stream.Expect (TokenClass.Colon); ret.Add (ParseExpression (stream)); if (!stream.Accept (TokenClass.Comma)) { break; } } stream.Expect (TokenClass.CloseBrace); return ret; }
public void Accept(HashExpression hash) { visitSubnodes (hash); methodBuilder.EmitInstruction (hash.Location, Opcode.BuildHash, hash.Children.Count / 2); }
public override void Accept (HashExpression hash) { hash.VisitChildren (this); methodBuilder.EmitInstruction (hash.Location, Opcode.BuildHash, hash.Children.Count / 2); }
public void Accept(HashExpression hash) { hash.Visit (functionCompiler); }
public override void Accept (HashExpression hash) { hash.Visit (parentVisitor); }
public virtual void Accept(HashExpression hash) { }
public void Accept(HashExpression hash) { hash.VisitChildren (this); }
public void Accept(HashExpression hash) { }