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

Unified Diff: pkg/yaml/lib/src/model.dart

Issue 401753002: Move a number of packages and some of pub over to using source_span. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 6 years, 5 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
« no previous file with comments | « pkg/yaml/CHANGELOG.md ('k') | pkg/yaml/lib/src/null_span.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/yaml/lib/src/model.dart
diff --git a/pkg/yaml/lib/src/model.dart b/pkg/yaml/lib/src/model.dart
index 0973769574a847924a34d6463d4a4e0585224a3a..93cb49c7a36901fbad5935ff3827fbac645960b9 100644
--- a/pkg/yaml/lib/src/model.dart
+++ b/pkg/yaml/lib/src/model.dart
@@ -7,7 +7,7 @@
/// representation graph.
library yaml.model;
-import 'package:source_maps/source_maps.dart';
+import 'package:source_span/source_span.dart';
import 'equality.dart';
import 'parser.dart';
@@ -83,7 +83,7 @@ abstract class Node {
String anchor;
/// The source span for this node.
- Span span;
+ SourceSpan span;
Node(this.tag, this.span, [this.anchor]);
@@ -102,7 +102,7 @@ class SequenceNode extends Node {
/// The nodes in the sequence.
List<Node> content;
- SequenceNode(String tagName, this.content, Span span)
+ SequenceNode(String tagName, this.content, SourceSpan span)
: super(new Tag.sequence(tagName), span);
/// Two sequences are equal if their tags and contents are equal.
@@ -125,7 +125,7 @@ class SequenceNode extends Node {
/// An alias node is a reference to an anchor.
class AliasNode extends Node {
- AliasNode(String anchor, Span span)
+ AliasNode(String anchor, SourceSpan span)
: super(new Tag.scalar(Tag.yaml("str")), span, anchor);
visit(Visitor v) => v.visitAlias(this);
@@ -145,7 +145,7 @@ class ScalarNode extends Node {
/// be specified for a newly-parsed scalar that hasn't yet been composed.
/// Value should be specified for a composed scalar, although `null` is a
/// valid value.
- ScalarNode(String tagName, Span span, {String content, this.value})
+ ScalarNode(String tagName, SourceSpan span, {String content, this.value})
: _content = content,
super(new Tag.scalar(tagName), span);
@@ -231,7 +231,7 @@ class MappingNode extends Node {
/// The node map.
Map<Node, Node> content;
- MappingNode(String tagName, this.content, Span span)
+ MappingNode(String tagName, this.content, SourceSpan span)
: super(new Tag.mapping(tagName), span);
/// Two mappings are equal if their tags and contents are equal.
« no previous file with comments | « pkg/yaml/CHANGELOG.md ('k') | pkg/yaml/lib/src/null_span.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698