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

Side by Side Diff: pkg/analyzer/lib/src/generated/source.dart

Issue 1347223002: Produce LINE_INFO for HTML files. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/html.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library engine.source; 5 library engine.source;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 import "dart:math" as math; 8 import "dart:math" as math;
9 9
10 import 'package:analyzer/file_system/file_system.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 final int columnNumber; 265 final int columnNumber;
266 266
267 /** 267 /**
268 * Initialize a newly created location to represent the location of the charac ter at the given 268 * Initialize a newly created location to represent the location of the charac ter at the given
269 * line and column position. 269 * line and column position.
270 * 270 *
271 * @param lineNumber the one-based index of the line containing the character 271 * @param lineNumber the one-based index of the line containing the character
272 * @param columnNumber the one-based index of the column containing the charac ter 272 * @param columnNumber the one-based index of the column containing the charac ter
273 */ 273 */
274 LineInfo_Location(this.lineNumber, this.columnNumber); 274 LineInfo_Location(this.lineNumber, this.columnNumber);
275
276 @override
277 String toString() => '$lineNumber:$columnNumber';
275 } 278 }
276 279
277 /** 280 /**
278 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven 281 * Instances of interface `LocalSourcePredicate` are used to determine if the gi ven
279 * [Source] is "local" in some sense, so can be updated. 282 * [Source] is "local" in some sense, so can be updated.
280 */ 283 */
281 abstract class LocalSourcePredicate { 284 abstract class LocalSourcePredicate {
282 /** 285 /**
283 * Instance of [LocalSourcePredicate] that always returns `false`. 286 * Instance of [LocalSourcePredicate] that always returns `false`.
284 */ 287 */
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 Source resolveAbsolute(Uri uri, [Uri actualUri]); 1077 Source resolveAbsolute(Uri uri, [Uri actualUri]);
1075 1078
1076 /** 1079 /**
1077 * Return an absolute URI that represents the given [source], or `null` if a 1080 * Return an absolute URI that represents the given [source], or `null` if a
1078 * valid URI cannot be computed. 1081 * valid URI cannot be computed.
1079 * 1082 *
1080 * The computation should be based solely on [source.fullName]. 1083 * The computation should be based solely on [source.fullName].
1081 */ 1084 */
1082 Uri restoreAbsolute(Source source) => null; 1085 Uri restoreAbsolute(Source source) => null;
1083 } 1086 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698