| OLD | NEW |
| 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 Loading... |
| 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 | |
| 90 Uri get uri => source.uri | 87 Uri get uri => source.uri |
| 91 .replace(queryParameters: {'offset': fragments[0].offset.toString()}); | 88 .replace(queryParameters: {'offset': fragments[0].offset.toString()}); |
| 92 | 89 |
| 93 @override | 90 @override |
| 94 UriKind get uriKind => | 91 UriKind get uriKind => |
| 95 throw new StateError('uriKind not supported for scripts'); | 92 throw new StateError('uriKind not supported for scripts'); |
| 96 | 93 |
| 97 @override | 94 @override |
| 98 bool exists() => source.exists(); | 95 bool exists() => source.exists(); |
| 99 } | 96 } |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 * The content of the fragment. | 416 * The content of the fragment. |
| 420 */ | 417 */ |
| 421 final String content; | 418 final String content; |
| 422 | 419 |
| 423 /** | 420 /** |
| 424 * Initialize a newly created script fragment to have the given [offset] and | 421 * Initialize a newly created script fragment to have the given [offset] and |
| 425 * [content]. | 422 * [content]. |
| 426 */ | 423 */ |
| 427 ScriptFragment(this.offset, this.line, this.column, this.content); | 424 ScriptFragment(this.offset, this.line, this.column, this.content); |
| 428 } | 425 } |
| OLD | NEW |