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

Unified Diff: pkg/compiler/lib/src/resolution/type_resolver.dart

Issue 1173403002: dart2js: Fix hints in code base. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to latest revision Created 5 years, 6 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/compiler/lib/src/resolution/type_resolver.dart
diff --git a/pkg/compiler/lib/src/resolution/type_resolver.dart b/pkg/compiler/lib/src/resolution/type_resolver.dart
index 85c21712785ba763339089eff4f8a7a2573fc606..2d7e51f586a3cf1dfaceb0b8c703fdcd0a8a0430 100644
--- a/pkg/compiler/lib/src/resolution/type_resolver.dart
+++ b/pkg/compiler/lib/src/resolution/type_resolver.dart
@@ -15,7 +15,6 @@ class TypeResolver {
Scope scope,
{bool deferredIsMalformed: true}) {
Element element;
- bool deferredTypeAnnotation = false;
if (prefixName != null) {
Element prefixElement =
lookupInScope(compiler, prefixName, scope, prefixName.source);
@@ -40,7 +39,6 @@ class TypeResolver {
element = null;
}
} else {
- String stringValue = typeName.source;
element = lookupInScope(compiler, typeName, scope, typeName.source);
}
return element;
@@ -178,8 +176,6 @@ class TypeResolver {
} else if (element.isTypeVariable) {
Element outer =
visitor.enclosingElement.outermostEnclosingMemberOrTopLevel;
- bool isInFactoryConstructor =
- outer != null && outer.isFactoryConstructor;
if (!outer.isClass &&
!outer.isTypedef &&
!Elements.hasAccessToTypeVariables(visitor.enclosingElement)) {

Powered by Google App Engine
This is Rietveld 408576698