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

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

Issue 2052293002: Fix the generation of URIs for scripts (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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 | no next file » | 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) 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698