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

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

Issue 1043473002: Fix the value of multiline strings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added more tests 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/lib/src/generated/parser.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 16450 matching lines...) Expand 10 before | Expand all | Expand 10 after
16461 } 16461 }
16462 16462
16463 @override 16463 @override
16464 Token get beginToken => literal; 16464 Token get beginToken => literal;
16465 16465
16466 @override 16466 @override
16467 Iterable get childEntities => new ChildEntities()..add(literal); 16467 Iterable get childEntities => new ChildEntities()..add(literal);
16468 16468
16469 @override 16469 @override
16470 int get contentsEnd { 16470 int get contentsEnd {
16471 return contentsOffset + value.length; 16471 if (isMultiline) {
16472 return end - 3;
16473 }
16474 return end - 1;
16472 } 16475 }
16473 16476
16474 @override 16477 @override
16475 int get contentsOffset { 16478 int get contentsOffset {
16476 int contentsOffset = 0; 16479 int contentsOffset = 0;
16477 if (isRaw) { 16480 if (isRaw) {
16478 contentsOffset += 1; 16481 contentsOffset += 1;
16479 } 16482 }
16480 if (isMultiline) { 16483 if (isMultiline) {
16481 contentsOffset += 3; 16484 contentsOffset += 3;
(...skipping 3576 matching lines...) Expand 10 before | Expand all | Expand 10 after
20058 } 20061 }
20059 20062
20060 @override 20063 @override
20061 accept(AstVisitor visitor) => visitor.visitYieldStatement(this); 20064 accept(AstVisitor visitor) => visitor.visitYieldStatement(this);
20062 20065
20063 @override 20066 @override
20064 void visitChildren(AstVisitor visitor) { 20067 void visitChildren(AstVisitor visitor) {
20065 _safelyVisitChild(_expression, visitor); 20068 _safelyVisitChild(_expression, visitor);
20066 } 20069 }
20067 } 20070 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698