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

Side by Side Diff: utils/pub/yaml/model.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 // This file contains the node classes for the internal representations of YAML 7 // This file contains the node classes for the internal representations of YAML
6 // documents. These nodes are used for both the serialization tree and the 8 // documents. These nodes are used for both the serialization tree and the
7 // representation graph. 9 // representation graph.
8 10
9 /** A tag that indicates the type of a YAML node. */ 11 /** A tag that indicates the type of a YAML node. */
10 class _Tag { 12 class _Tag {
11 // TODO(nweiz): it would better match the semantics of the spec if there were 13 // TODO(nweiz): it would better match the semantics of the spec if there were
12 // a singleton instance of this class for each tag. 14 // a singleton instance of this class for each tag.
13 15
14 static const SCALAR_KIND = 0; 16 static const SCALAR_KIND = 0;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 String toString() { 231 String toString() {
230 var strContent = Strings.join(content.keys. 232 var strContent = Strings.join(content.keys.
231 map((k) => '${k}: ${content[k]}'), ', '); 233 map((k) => '${k}: ${content[k]}'), ', ');
232 return '$tag {$strContent}'; 234 return '$tag {$strContent}';
233 } 235 }
234 236
235 int get hashCode => super.hashCode ^ _hashCode(content); 237 int get hashCode => super.hashCode ^ _hashCode(content);
236 238
237 visit(_Visitor v) => v.visitMapping(this); 239 visit(_Visitor v) => v.visitMapping(this);
238 } 240 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698