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

Unified Diff: compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month 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 | compiler/java/com/google/dart/compiler/util/apache/FilenameUtils.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java
diff --git a/compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java b/compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java
index 56cd26774a40f0373ef1744213f6116381fb1710..c78ac00e08a7cb00090536bf349f6fff204ca77d 100644
--- a/compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java
+++ b/compiler/java/com/google/dart/compiler/type/ExternalTypeAnalyzers.java
@@ -118,11 +118,8 @@ public class ExternalTypeAnalyzers {
String name = element.getName();
List<DartExpression> arguments = invocation.getArguments();
LibraryElement libraryElement = Elements.getDeclaringLibrary(element);
- // NodeSelector.query(String)
- EnclosingElement enclosingElement = element.getEnclosingElement();
- if ("query".equals(name) && isDeclaredInHtmlLibrary(element)
- && ElementKind.of(enclosingElement) == ElementKind.CLASS
- && "NodeSelector".equals(enclosingElement.getName())) {
+ // Document.query(String)
+ if ("query".equals(name) && isDeclaredInHtmlLibrary(element)) {
return analyzeQuery(arguments, libraryElement, defaultType);
}
// no guess
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/util/apache/FilenameUtils.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698