Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Side by Side Diff: pkg/analyzer/lib/src/generated/testing/ast_factory.dart

Issue 1062723002: Implement the new '?.' operator in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bump analyzer version. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.testing.ast_factory; 8 library engine.testing.ast_factory;
9 9
10 import 'package:analyzer/src/generated/ast.dart'; 10 import 'package:analyzer/src/generated/ast.dart';
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 TypeName returnType, Keyword property, Keyword operator, 615 TypeName returnType, Keyword property, Keyword operator,
616 SimpleIdentifier name, FormalParameterList parameters, 616 SimpleIdentifier name, FormalParameterList parameters,
617 FunctionBody body) => new MethodDeclaration(null, null, null, 617 FunctionBody body) => new MethodDeclaration(null, null, null,
618 modifier == null ? null : TokenFactory.tokenFromKeyword(modifier), 618 modifier == null ? null : TokenFactory.tokenFromKeyword(modifier),
619 returnType, 619 returnType,
620 property == null ? null : TokenFactory.tokenFromKeyword(property), 620 property == null ? null : TokenFactory.tokenFromKeyword(property),
621 operator == null ? null : TokenFactory.tokenFromKeyword(operator), name, 621 operator == null ? null : TokenFactory.tokenFromKeyword(operator), name,
622 parameters, body); 622 parameters, body);
623 623
624 static MethodInvocation methodInvocation(Expression target, String methodName, 624 static MethodInvocation methodInvocation(Expression target, String methodName,
625 [List<Expression> arguments]) => new MethodInvocation(target, 625 [List<Expression> arguments,
626 target == null ? null : TokenFactory.tokenFromType(TokenType.PERIOD), 626 TokenType operator = TokenType.PERIOD]) => new MethodInvocation(target,
627 target == null ? null : TokenFactory.tokenFromType(operator),
627 identifier3(methodName), argumentList(arguments)); 628 identifier3(methodName), argumentList(arguments));
628 629
629 static MethodInvocation methodInvocation2(String methodName, 630 static MethodInvocation methodInvocation2(String methodName,
630 [List<Expression> arguments]) => 631 [List<Expression> arguments]) =>
631 methodInvocation(null, methodName, arguments); 632 methodInvocation(null, methodName, arguments);
632 633
633 static NamedExpression namedExpression(Label label, Expression expression) => 634 static NamedExpression namedExpression(Label label, Expression expression) =>
634 new NamedExpression(label, expression); 635 new NamedExpression(label, expression);
635 636
636 static NamedExpression namedExpression2( 637 static NamedExpression namedExpression2(
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 new YieldStatement( 944 new YieldStatement(
944 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), 945 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"),
945 TokenFactory.tokenFromType(TokenType.STAR), expression, 946 TokenFactory.tokenFromType(TokenType.STAR), expression,
946 TokenFactory.tokenFromType(TokenType.SEMICOLON)); 947 TokenFactory.tokenFromType(TokenType.SEMICOLON));
947 948
948 static YieldStatement yieldStatement( 949 static YieldStatement yieldStatement(
949 Expression expression) => new YieldStatement( 950 Expression expression) => new YieldStatement(
950 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, 951 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null,
951 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); 952 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON));
952 } 953 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698