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

Unified Diff: pkg/csslib/lib/css.dart

Issue 426053003: Use source_span rather than source_maps in csslib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add CHANGELOG 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/csslib/CHANGELOG.md ('k') | pkg/csslib/lib/parser.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/lib/css.dart
diff --git a/pkg/csslib/lib/css.dart b/pkg/csslib/lib/css.dart
index 2d94e5c334cb768c24f2912fdceac9c7f1c31085..73400bc2ab0c1ea39245a90b15323c32db273230 100644
--- a/pkg/csslib/lib/css.dart
+++ b/pkg/csslib/lib/css.dart
@@ -7,7 +7,7 @@ library css;
import 'dart:io';
import 'package:path/path.dart' as path;
-import 'package:source_maps/span.dart' show SourceFile;
+import 'package:source_span/source_span.dart';
import 'parser.dart';
import 'visitor.dart';
@@ -36,7 +36,7 @@ void _compile(String inputPath, bool verbose) {
// Read the file.
var filename = path.basename(inputPath);
var contents = new File(inputPath).readAsStringSync();
- var file = new SourceFile.text(inputPath, contents);
+ var file = new SourceFile(contents, url: path.toUri(inputPath));
// Parse the CSS.
var tree = _time('Parse $filename',
« no previous file with comments | « pkg/csslib/CHANGELOG.md ('k') | pkg/csslib/lib/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698