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

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

Issue 1043583002: Scanner/parser support for DEP 9 (null-aware operators). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 new PostfixExpression(expression, TokenFactory.tokenFromType(operator)); 689 new PostfixExpression(expression, TokenFactory.tokenFromType(operator));
690 690
691 static PrefixExpression prefixExpression( 691 static PrefixExpression prefixExpression(
692 TokenType operator, Expression expression) => 692 TokenType operator, Expression expression) =>
693 new PrefixExpression(TokenFactory.tokenFromType(operator), expression); 693 new PrefixExpression(TokenFactory.tokenFromType(operator), expression);
694 694
695 static PropertyAccess propertyAccess( 695 static PropertyAccess propertyAccess(
696 Expression target, SimpleIdentifier propertyName) => new PropertyAccess( 696 Expression target, SimpleIdentifier propertyName) => new PropertyAccess(
697 target, TokenFactory.tokenFromType(TokenType.PERIOD), propertyName); 697 target, TokenFactory.tokenFromType(TokenType.PERIOD), propertyName);
698 698
699 static PropertyAccess propertyAccess2( 699 static PropertyAccess propertyAccess2(Expression target, String propertyName,
700 Expression target, String propertyName) => new PropertyAccess(target, 700 [TokenType operator = TokenType.PERIOD]) => new PropertyAccess(
701 TokenFactory.tokenFromType(TokenType.PERIOD), identifier3(propertyName)); 701 target, TokenFactory.tokenFromType(operator), identifier3(propertyName));
702 702
703 static RedirectingConstructorInvocation redirectingConstructorInvocation( 703 static RedirectingConstructorInvocation redirectingConstructorInvocation(
704 [List<Expression> arguments]) => 704 [List<Expression> arguments]) =>
705 redirectingConstructorInvocation2(null, arguments); 705 redirectingConstructorInvocation2(null, arguments);
706 706
707 static RedirectingConstructorInvocation redirectingConstructorInvocation2( 707 static RedirectingConstructorInvocation redirectingConstructorInvocation2(
708 String constructorName, [List<Expression> arguments]) => 708 String constructorName, [List<Expression> arguments]) =>
709 new RedirectingConstructorInvocation( 709 new RedirectingConstructorInvocation(
710 TokenFactory.tokenFromKeyword(Keyword.THIS), constructorName == null 710 TokenFactory.tokenFromKeyword(Keyword.THIS), constructorName == null
711 ? null 711 ? null
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 new YieldStatement( 943 new YieldStatement(
944 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), 944 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"),
945 TokenFactory.tokenFromType(TokenType.STAR), expression, 945 TokenFactory.tokenFromType(TokenType.STAR), expression,
946 TokenFactory.tokenFromType(TokenType.SEMICOLON)); 946 TokenFactory.tokenFromType(TokenType.SEMICOLON));
947 947
948 static YieldStatement yieldStatement( 948 static YieldStatement yieldStatement(
949 Expression expression) => new YieldStatement( 949 Expression expression) => new YieldStatement(
950 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null, 950 TokenFactory.tokenFromTypeAndString(TokenType.IDENTIFIER, "yield"), null,
951 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON)); 951 expression, TokenFactory.tokenFromType(TokenType.SEMICOLON));
952 } 952 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698