private Ast.Expression ParseCompileExpression() { var compileExp = new Ast.CompileExpression() { Span = currentToken.Span }; if (!ExpectNext(TokenType.Identifier)) { return(compileExp); } compileExp.Profile = ParseIdentifier(currentToken); // Go to expression token NextToken(); compileExp.Method = ParseExpression(); return(compileExp); }
private Ast.Expression ParseCompileExpression() { var compileExp = new Ast.CompileExpression() {Span = currentToken.Span}; if (!ExpectNext(TokenType.Identifier)) return compileExp; compileExp.Profile = ParseIdentifier(currentToken); // Go to expression token NextToken(); compileExp.Method = ParseExpression(); return compileExp; }