| 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 | |
| 7 class CodeBuffer implements StringBuffer { | 5 class CodeBuffer implements StringBuffer { |
| 8 StringBuffer buffer; | 6 StringBuffer buffer; |
| 9 List<CodeBufferMarker> markers; | 7 List<CodeBufferMarker> markers; |
| 10 int lastBufferOffset = 0; | 8 int lastBufferOffset = 0; |
| 11 int mappedRangeCounter = 0; | 9 int mappedRangeCounter = 0; |
| 12 | 10 |
| 13 CodeBuffer() | 11 CodeBuffer() |
| 14 : buffer = new StringBuffer(), | 12 : buffer = new StringBuffer(), |
| 15 markers = new List<CodeBufferMarker>(); | 13 markers = new List<CodeBufferMarker>(); |
| 16 | 14 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 }); | 91 }); |
| 94 } | 92 } |
| 95 } | 93 } |
| 96 | 94 |
| 97 class CodeBufferMarker { | 95 class CodeBufferMarker { |
| 98 final int offsetDelta; | 96 final int offsetDelta; |
| 99 final sourcePosition; | 97 final sourcePosition; |
| 100 | 98 |
| 101 CodeBufferMarker(this.offsetDelta, this.sourcePosition); | 99 CodeBufferMarker(this.offsetDelta, this.sourcePosition); |
| 102 } | 100 } |
| OLD | NEW |