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

Side by Side Diff: pkg/analyzer/lib/src/task/html.dart

Issue 2498133002: Connect analyzer's AnalysisError object to front_end's CompilationError. (Closed)
Patch Set: Created 4 years, 1 month 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analyzer.src.task.html; 5 library analyzer.src.task.html;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/error/error.dart'; 9 import 'package:analyzer/error/error.dart';
10 import 'package:analyzer/exception/exception.dart'; 10 import 'package:analyzer/exception/exception.dart';
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 @override 77 @override
78 Source get librarySource => source; 78 Source get librarySource => source;
79 79
80 @override 80 @override
81 int get modificationStamp => source.modificationStamp; 81 int get modificationStamp => source.modificationStamp;
82 82
83 @override 83 @override
84 String get shortName => source.shortName; 84 String get shortName => source.shortName;
85 85
86 @override 86 @override
87 SourceFile get sourceFile => source.sourceFile;
88
89 @override
87 Uri get uri => source.uri 90 Uri get uri => source.uri
88 .replace(queryParameters: {'offset': fragments[0].offset.toString()}); 91 .replace(queryParameters: {'offset': fragments[0].offset.toString()});
89 92
90 @override 93 @override
91 UriKind get uriKind => 94 UriKind get uriKind =>
92 throw new StateError('uriKind not supported for scripts'); 95 throw new StateError('uriKind not supported for scripts');
93 96
94 @override 97 @override
95 bool exists() => source.exists(); 98 bool exists() => source.exists();
96 } 99 }
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 * The content of the fragment. 419 * The content of the fragment.
417 */ 420 */
418 final String content; 421 final String content;
419 422
420 /** 423 /**
421 * Initialize a newly created script fragment to have the given [offset] and 424 * Initialize a newly created script fragment to have the given [offset] and
422 * [content]. 425 * [content].
423 */ 426 */
424 ScriptFragment(this.offset, this.line, this.column, this.content); 427 ScriptFragment(this.offset, this.line, this.column, this.content);
425 } 428 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698