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

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: 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/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index 762c6f223b6ca06e6575e3d694e0215f77ad6646..0bacc671ae1a069eee18094eae96b48c11a422bc 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -1597,7 +1597,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) {
@@ -3785,7 +3784,6 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
visitLiteralMap(LiteralMap node) {
- bool oldSendIsMemberAccess = sendIsMemberAccess;
sendIsMemberAccess = false;
NodeList arguments = node.typeArguments;
@@ -3859,10 +3857,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;
@@ -4484,7 +4478,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++];

Powered by Google App Engine
This is Rietveld 408576698