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/src/context/cache.dart'; | 9 import 'package:analyzer/src/context/cache.dart'; |
10 import 'package:analyzer/src/dart/scanner/scanner.dart'; | 10 import 'package:analyzer/src/dart/scanner/scanner.dart'; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 @override | 73 @override |
74 bool get isInSystemLibrary => source.isInSystemLibrary; | 74 bool get isInSystemLibrary => source.isInSystemLibrary; |
75 | 75 |
76 @override | 76 @override |
77 int get modificationStamp => source.modificationStamp; | 77 int get modificationStamp => source.modificationStamp; |
78 | 78 |
79 @override | 79 @override |
80 String get shortName => source.shortName; | 80 String get shortName => source.shortName; |
81 | 81 |
82 @override | 82 @override |
83 Uri get uri => | 83 Uri get uri => source.uri |
84 source.uri.replace(queryParameters: {'offset': fragments[0].offset}); | 84 .replace(queryParameters: {'offset': fragments[0].offset.toString()}); |
85 | 85 |
86 @override | 86 @override |
87 UriKind get uriKind => | 87 UriKind get uriKind => |
88 throw new StateError('uriKind not supported for scripts'); | 88 throw new StateError('uriKind not supported for scripts'); |
89 | 89 |
90 @override | 90 @override |
91 bool exists() => source.exists(); | 91 bool exists() => source.exists(); |
92 } | 92 } |
93 | 93 |
94 /** | 94 /** |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
412 * The content of the fragment. | 412 * The content of the fragment. |
413 */ | 413 */ |
414 final String content; | 414 final String content; |
415 | 415 |
416 /** | 416 /** |
417 * Initialize a newly created script fragment to have the given [offset] and | 417 * Initialize a newly created script fragment to have the given [offset] and |
418 * [content]. | 418 * [content]. |
419 */ | 419 */ |
420 ScriptFragment(this.offset, this.line, this.column, this.content); | 420 ScriptFragment(this.offset, this.line, this.column, this.content); |
421 } | 421 } |
OLD | NEW |