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

Unified Diff: lib/src/yaml_node.dart

Issue 1329183002: Fix source spans for scalars. (Closed) Base URL: git@github.com:dart-lang/yaml@master
Patch Set: Created 5 years, 3 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/yaml_node.dart
diff --git a/lib/src/yaml_node.dart b/lib/src/yaml_node.dart
index d4961bb91d61bac5e8709acb6b9de6677e3e4215..99f751510655ac92149d787378888c45c90eeaba 100644
--- a/lib/src/yaml_node.dart
+++ b/lib/src/yaml_node.dart
@@ -166,7 +166,7 @@ class YamlScalar extends YamlNode {
/// Users of the library should not use this constructor.
YamlScalar.internal(this.value, ScalarEvent scalar)
: style = scalar.style {
- _span = span;
+ _span = scalar.span;
}
/// Users of the library should not use this constructor.
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698