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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java

Issue 9651004: Make SourceInfo a class, rename its menthods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for formatting, lazily create LainesInfo Created 8 years, 9 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
Index: compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
index 4b79ca396ac3522d128b074b5202e2ad3ce6918e..bc2863cd9ee9f19603174ffb5623a116edbf9a85 100644
--- a/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
+++ b/compiler/java/com/google/dart/compiler/resolver/SupertypeResolver.java
@@ -72,7 +72,7 @@ public class SupertypeResolver {
}
if (supertype != null) {
if (Elements.isTypeNode(superclassNode, BLACK_LISTED_TYPES)
- && !isCoreLibrarySource(node.getSource())) {
+ && !isCoreLibrarySource(node.getSourceInfo().getSource())) {
topLevelContext.onError(
superclassNode,
ResolverErrorCode.BLACK_LISTED_EXTENDS,
@@ -97,7 +97,7 @@ public class SupertypeResolver {
Elements.addInterface(classElement, intElement);
// Dynamic can not be used as interface.
if (Elements.isTypeNode(intNode, BLACK_LISTED_TYPES)
- && !isCoreLibrarySource(node.getSource())) {
+ && !isCoreLibrarySource(node.getSourceInfo().getSource())) {
topLevelContext.onError(intNode, ResolverErrorCode.BLACK_LISTED_IMPLEMENTS, intNode);
continue;
}

Powered by Google App Engine
This is Rietveld 408576698