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

Unified Diff: pkg/compiler/lib/src/scanner/class_element_parser.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/scanner/class_element_parser.dart
diff --git a/pkg/compiler/lib/src/scanner/class_element_parser.dart b/pkg/compiler/lib/src/scanner/class_element_parser.dart
index 67fe48035eea7535b9b4f0a7da221e63fea59678..627b0add7e9bb1971aa9da411a31019f1a8d18da 100644
--- a/pkg/compiler/lib/src/scanner/class_element_parser.dart
+++ b/pkg/compiler/lib/src/scanner/class_element_parser.dart
@@ -57,7 +57,7 @@ class PartialClassElement extends ClassElementX with PartialElement {
invariant(
beginToken, listener.nodes.isEmpty,
message: "Non-empty listener stack: ${listener.nodes}"));
- } on ParserError catch (e) {
+ } on ParserError {
// TODO(ahe): Often, a ParserError is thrown while parsing the class
// body. This means that the stack actually contains most of the
// information synthesized below. Consider rewriting the parser so
@@ -186,7 +186,6 @@ class MemberListener extends NodeListener {
{'name': enclosingClass.name});
}
}
- ElementKind kind = ElementKind.FUNCTION;
Element memberElement = new PartialConstructorElement(
name, beginToken, endToken,
ElementKind.FUNCTION,

Powered by Google App Engine
This is Rietveld 408576698