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

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

Issue 1061883002: Fix tests broken by r44880. (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
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16712 matching lines...) Expand 10 before | Expand all | Expand 10 after
16723 isMultiline = false; 16723 isMultiline = false;
16724 start++; 16724 start++;
16725 } else if (start < lexeme.length && lexeme.codeUnitAt(start) == 0x22) { 16725 } else if (start < lexeme.length && lexeme.codeUnitAt(start) == 0x22) {
16726 isSingleQuoted = false; 16726 isSingleQuoted = false;
16727 isMultiline = false; 16727 isMultiline = false;
16728 start++; 16728 start++;
16729 } 16729 }
16730 } 16730 }
16731 end = lexeme.length; 16731 end = lexeme.length;
16732 if (isLast) { 16732 if (isLast) {
16733 if (StringUtilities.endsWith3(lexeme, 0x22, 0x22, 0x22) || 16733 if (start + 3 <= end &&
16734 StringUtilities.endsWith3(lexeme, 0x27, 0x27, 0x27)) { 16734 (StringUtilities.endsWith3(lexeme, 0x22, 0x22, 0x22) ||
16735 StringUtilities.endsWith3(lexeme, 0x27, 0x27, 0x27))) {
16735 end -= 3; 16736 end -= 3;
16736 } else if (StringUtilities.endsWithChar(lexeme, 0x22) || 16737 } else if (start + 1 <= end &&
16737 StringUtilities.endsWithChar(lexeme, 0x27)) { 16738 (StringUtilities.endsWithChar(lexeme, 0x22) ||
16739 StringUtilities.endsWithChar(lexeme, 0x27))) {
16738 end -= 1; 16740 end -= 1;
16739 } 16741 }
16740 } 16742 }
16741 } 16743 }
16742 16744
16743 /** 16745 /**
16744 * Given the [lexeme] for a multi-line string whose content begins at the 16746 * Given the [lexeme] for a multi-line string whose content begins at the
16745 * given [start] index, return the index of the first character that is 16747 * given [start] index, return the index of the first character that is
16746 * included in the value of the string. According to the specification: 16748 * included in the value of the string. According to the specification:
16747 * 16749 *
(...skipping 3402 matching lines...) Expand 10 before | Expand all | Expand 10 after
20150 } 20152 }
20151 20153
20152 @override 20154 @override
20153 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 20155 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
20154 20156
20155 @override 20157 @override
20156 void visitChildren(AstVisitor visitor) { 20158 void visitChildren(AstVisitor visitor) {
20157 _safelyVisitChild(_expression, visitor); 20159 _safelyVisitChild(_expression, visitor);
20158 } 20160 }
20159 } 20161 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698