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/compiler/lib/src/resolution/members.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
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 57004c3d40b5c159744798daaf3cdb2ef44d82e2..301230d8f21c6480d4d2cb1f6875da6626a0ad94 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -1612,7 +1612,6 @@ class InitializerResolver {
} else {
initializers = functionNode.initializers.nodes;
}
- FunctionElement result;
bool resolvedSuper = false;
for (Link<Node> link = initializers; !link.isEmpty; link = link.tail) {
if (link.head.asSendSet() != null) {
@@ -3816,7 +3815,6 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
visitLiteralMap(LiteralMap node) {
- bool oldSendIsMemberAccess = sendIsMemberAccess;
sendIsMemberAccess = false;
NodeList arguments = node.typeArguments;
@@ -3890,10 +3888,6 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
void checkCaseExpressions(SwitchStatement node) {
- JumpTarget breakElement = getOrDefineTarget(node);
- Map<String, LabelDefinition> continueLabels = <String, LabelDefinition>{};
-
- Link<Node> cases = node.cases.nodes;
CaseMatch firstCase = null;
DartType firstCaseType = null;
bool hasReportedProblem = false;
@@ -4515,7 +4509,6 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
typeVariables.add(typeVariable);
});
// Setup bounds on the synthetic type variables.
- List<DartType> link = typeVariables;
int index = 0;
element.typeVariables.forEach((TypeVariableType type) {
TypeVariableType typeVariable = typeVariables[index++];
« no previous file with comments | « pkg/compiler/lib/src/patch_parser.dart ('k') | pkg/compiler/lib/src/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698