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

Unified Diff: utils/pub/yaml/parser.dart

Issue 11609005: Fix analyzer errors/warnings for Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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: utils/pub/yaml/parser.dart
diff --git a/utils/pub/yaml/parser.dart b/utils/pub/yaml/parser.dart
index dcfc50a35f97029ac24a259b34ce8ade9c013928..43519918527828da29788bb92bafe96d21b3bf40 100644
--- a/utils/pub/yaml/parser.dart
+++ b/utils/pub/yaml/parser.dart
@@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+part of yaml;
+
/**
* Translates a string of characters into a YAML serialization tree.
*
@@ -1805,10 +1807,10 @@ class _Parser {
_Node s_l_blockScalar(int indent, int ctx) => transaction(() {
if (!truth(s_separate(indent + 1, ctx))) return null;
var props = transaction(() {
- var props = c_ns_properties(indent + 1, ctx);
- if (!truth(props)) return null;
+ var innerProps = c_ns_properties(indent + 1, ctx);
+ if (!truth(innerProps)) return null;
if (!truth(s_separate(indent + 1, ctx))) return null;
- return props;
+ return innerProps;
});
var node = or([() => c_l_literal(indent), () => c_l_folded(indent)]);

Powered by Google App Engine
This is Rietveld 408576698