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

Side by Side Diff: lib/compiler/implementation/code_buffer.dart

Issue 11262032: Add 'part of' in dart2js code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | lib/compiler/implementation/compile_time_constants.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart2js;
6
5 class CodeBuffer implements StringBuffer { 7 class CodeBuffer implements StringBuffer {
6 StringBuffer buffer; 8 StringBuffer buffer;
7 List<CodeBufferMarker> markers; 9 List<CodeBufferMarker> markers;
8 int lastBufferOffset = 0; 10 int lastBufferOffset = 0;
9 int mappedRangeCounter = 0; 11 int mappedRangeCounter = 0;
10 12
11 CodeBuffer() 13 CodeBuffer()
12 : buffer = new StringBuffer(), 14 : buffer = new StringBuffer(),
13 markers = new List<CodeBufferMarker>(); 15 markers = new List<CodeBufferMarker>();
14 16
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 }); 93 });
92 } 94 }
93 } 95 }
94 96
95 class CodeBufferMarker { 97 class CodeBufferMarker {
96 final int offsetDelta; 98 final int offsetDelta;
97 final sourcePosition; 99 final sourcePosition;
98 100
99 CodeBufferMarker(this.offsetDelta, this.sourcePosition); 101 CodeBufferMarker(this.offsetDelta, this.sourcePosition);
100 } 102 }
OLDNEW
« no previous file with comments | « no previous file | lib/compiler/implementation/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698