| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |