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

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

Issue 1847633002: Fix more strong mode errors in analyzer (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix copied comment Created 4 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: pkg/analyzer/lib/src/summary/resynthesize.dart
diff --git a/pkg/analyzer/lib/src/summary/resynthesize.dart b/pkg/analyzer/lib/src/summary/resynthesize.dart
index de36f0a16d7d5d8ab9f05102e0c12520dccf7a9f..4b08c5fe1e39c99e87c4a1c2428398069de35827 100644
--- a/pkg/analyzer/lib/src/summary/resynthesize.dart
+++ b/pkg/analyzer/lib/src/summary/resynthesize.dart
@@ -723,7 +723,8 @@ class _DeferredConstructorElement extends ConstructorElementHandle {
: super(null, location);
@override
- Element get actualElement => enclosingElement.getNamedConstructor(name);
+ ConstructorElement get actualElement =>
+ enclosingElement.getNamedConstructor(name);
@override
AnalysisContext get context => _definingType.element.context;
@@ -1325,7 +1326,7 @@ class _ReferenceInfo {
// For a type that refers to a generic executable, the type arguments are
// not supposed to include the arguments to the executable itself.
numTypeArguments = enclosing == null ? 0 : enclosing.numTypeParameters;
- computer = () => this.element;
+ computer = () => this.element as FunctionTypedElement;
}
// TODO(paulberry): Is it a bug that we have to pass `false` for
// isInstantiated?

Powered by Google App Engine
This is Rietveld 408576698