OLD | NEW |
1 // Copyright (c) 2011, 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 /** | 5 /** |
6 * The cached lookup-table to associate doc comments with spans. The outer map | 6 * The cached lookup-table to associate doc comments with spans. The outer map |
7 * is from filenames to doc comments in that file. The inner map maps from the | 7 * is from filenames to doc comments in that file. The inner map maps from the |
8 * token positions to doc comments. Each position is the starting offset of the | 8 * token positions to doc comments. Each position is the starting offset of the |
9 * next non-comment token *following* the doc comment. For example, the position | 9 * next non-comment token *following* the doc comment. For example, the position |
10 * for this comment would be the position of the "class" token below. | 10 * for this comment would be the position of the "class" token below. |
11 */ | 11 */ |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 line = line.substring(1); | 113 line = line.substring(1); |
114 } | 114 } |
115 | 115 |
116 buf.add(line); | 116 buf.add(line); |
117 buf.add('\n'); | 117 buf.add('\n'); |
118 } | 118 } |
119 | 119 |
120 return buf.toString(); | 120 return buf.toString(); |
121 } | 121 } |
122 } | 122 } |
OLD | NEW |