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

Side by Side Diff: utils/pub/yaml/constructor.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of yaml;
6
5 /** 7 /**
6 * Takes a parsed and composed YAML document (what the spec calls the 8 * Takes a parsed and composed YAML document (what the spec calls the
7 * "representation graph") and creates native Dart objects that represent that 9 * "representation graph") and creates native Dart objects that represent that
8 * document. 10 * document.
9 */ 11 */
10 class _Constructor extends _Visitor { 12 class _Constructor extends _Visitor {
11 /** The root node of the representation graph. */ 13 /** The root node of the representation graph. */
12 _Node root; 14 _Node root;
13 15
14 /** Map from anchor names to the most recent Dart node with that anchor. */ 16 /** Map from anchor names to the most recent Dart node with that anchor. */
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 if (anchors.containsKey(anchored.anchor)) return anchors[anchored.anchor]; 51 if (anchors.containsKey(anchored.anchor)) return anchors[anchored.anchor];
50 } 52 }
51 53
52 /** Records that [value] is the Dart object representing [anchored]. */ 54 /** Records that [value] is the Dart object representing [anchored]. */
53 setAnchor(_Node anchored, value) { 55 setAnchor(_Node anchored, value) {
54 if (anchored.anchor == null) return value; 56 if (anchored.anchor == null) return value;
55 anchors[anchored.anchor] = value; 57 anchors[anchored.anchor] = value;
56 return value; 58 return value;
57 } 59 }
58 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698