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

Unified Diff: pkg/compiler/lib/src/typechecker.dart

Issue 1155633002: Fix 56 hints in pkg/compiler (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: rebase Created 5 years, 7 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/typechecker.dart
diff --git a/pkg/compiler/lib/src/typechecker.dart b/pkg/compiler/lib/src/typechecker.dart
index 82d829164ac9c90eddf7add4120202bd9f628c5c..8cf2b8042a3916da63b915fc3022f1112f7e83e2 100644
--- a/pkg/compiler/lib/src/typechecker.dart
+++ b/pkg/compiler/lib/src/typechecker.dart
@@ -594,7 +594,6 @@ class TypeCheckerVisitor extends Visitor<DartType> {
DartType visitFunctionExpression(FunctionExpression node) {
DartType type;
DartType returnType;
- DartType previousType;
final FunctionElement element = elements.getFunctionDefinition(node);
assert(invariant(node, element != null,
message: 'FunctionExpression with no element'));
@@ -994,7 +993,6 @@ class TypeCheckerVisitor extends Visitor<DartType> {
if (receiverType.treatAsDynamic || receiverType.isVoid) {
return const DynamicAccess();
}
- TypeKind receiverKind = receiverType.kind;
return lookupMember(node, receiverType, name, memberKind,
elements[node.receiver],
lookupClassMember: lookupClassMember ||
@@ -1683,7 +1681,6 @@ class TypeCheckerVisitor extends Visitor<DartType> {
DartType visitWhile(While node) {
checkCondition(node.condition);
analyze(node.body);
- Expression cond = node.condition.asParenthesizedExpression().expression;
return const StatementType();
}
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/optimization/variable_merger.dart ('k') | pkg/compiler/lib/src/universe/side_effects.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698