OLD | NEW |
1 part of dartdoc; | |
2 | |
3 // 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 |
4 // 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 |
5 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
6 | 4 |
7 /** | 5 /** |
8 * 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 |
9 * 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 |
10 * 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 |
11 * 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 |
12 * 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. |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 line = line.substring(1); | 118 line = line.substring(1); |
121 } | 119 } |
122 | 120 |
123 buf.add(line); | 121 buf.add(line); |
124 buf.add('\n'); | 122 buf.add('\n'); |
125 } | 123 } |
126 | 124 |
127 return buf.toString(); | 125 return buf.toString(); |
128 } | 126 } |
129 } | 127 } |
OLD | NEW |