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

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 2745283007: Fix also type inference for enum method invocation. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index a3cd302bf6f3e35b97ffc24eca371553138cab18..0945db285db9aa2665e25ad4a065d2e5870baef5 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -436,6 +436,16 @@ abstract class ClassElementForLink extends Object
return null;
}
+ @override
+ MethodElement getMethod(String methodName) {
+ for (MethodElement method in methods) {
+ if (method.name == methodName) {
+ return method;
+ }
+ }
+ return null;
+ }
+
/**
* Perform type inference and cycle detection on this class and
* store the resulting information in [compilationUnit].
@@ -644,16 +654,6 @@ class ClassElementForLink_Class extends ClassElementForLink
}
@override
- MethodElement getMethod(String methodName) {
- for (MethodElement method in methods) {
- if (method.name == methodName) {
- return method;
- }
- }
- return null;
- }
-
- @override
void link(CompilationUnitElementInBuildUnit compilationUnit) {
for (ConstructorElementForLink constructorElement in constructors) {
constructorElement.link(compilationUnit);
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698