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

Unified Diff: sdk/lib/_internal/compiler/implementation/compiler.dart

Issue 11854009: Change spanFromNode to spanFromSpannable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/compiler.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compiler.dart b/sdk/lib/_internal/compiler/implementation/compiler.dart
index 5feacd0ad922b1b05fa5b48ecc2d7c508477e148..8f8e077459cd3a9e837338147753d70b210cdc7f 100644
--- a/sdk/lib/_internal/compiler/implementation/compiler.dart
+++ b/sdk/lib/_internal/compiler/implementation/compiler.dart
@@ -428,11 +428,11 @@ abstract class Compiler implements DiagnosticListener {
throw new CompilerCancelledException(reason);
}
- SourceSpan spanFromSpannable(Spannable node) {
+ SourceSpan spanFromSpannable(Spannable node, [Uri uri]) {
if (node is Node) {
- return spanFromNode(node);
+ return spanFromNode(node, uri);
} else if (node is Token) {
- return spanFromTokens(node, node);
+ return spanFromTokens(node, node, uri);
} else if (node is HInstruction) {
return spanFromHInstruction(node);
} else if (node is Element) {
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/diagnostic_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698