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

Side by Side Diff: pkg/analyzer/lib/src/generated/ast.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.ast; 8 library engine.ast;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 18167 matching lines...) Expand 10 before | Expand all | Expand 10 after
18178 _visitNode(node.operand); 18178 _visitNode(node.operand);
18179 return null; 18179 return null;
18180 } 18180 }
18181 18181
18182 @override 18182 @override
18183 Object visitPropertyAccess(PropertyAccess node) { 18183 Object visitPropertyAccess(PropertyAccess node) {
18184 if (node.isCascaded) { 18184 if (node.isCascaded) {
18185 _writer.print(".."); 18185 _writer.print("..");
18186 } else { 18186 } else {
18187 _visitNode(node.target); 18187 _visitNode(node.target);
18188 _writer.print('.'); 18188 _writer.print(node.operator.lexeme);
18189 } 18189 }
18190 _visitNode(node.propertyName); 18190 _visitNode(node.propertyName);
18191 return null; 18191 return null;
18192 } 18192 }
18193 18193
18194 @override 18194 @override
18195 Object visitRedirectingConstructorInvocation( 18195 Object visitRedirectingConstructorInvocation(
18196 RedirectingConstructorInvocation node) { 18196 RedirectingConstructorInvocation node) {
18197 _writer.print("this"); 18197 _writer.print("this");
18198 _visitNodeWithPrefix(".", node.constructorName); 18198 _visitNodeWithPrefix(".", node.constructorName);
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
20087 } 20087 }
20088 20088
20089 @override 20089 @override
20090 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 20090 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
20091 20091
20092 @override 20092 @override
20093 void visitChildren(AstVisitor visitor) { 20093 void visitChildren(AstVisitor visitor) {
20094 _safelyVisitChild(_expression, visitor); 20094 _safelyVisitChild(_expression, visitor);
20095 } 20095 }
20096 } 20096 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | pkg/analyzer/test/generated/parser_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698