8fd2c2e5ea
BUG= Review URL: https://codereview.chromium.org//14188048 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21770 260f80e4-7a28-3924-810f-c04153c831b5
44 lines
1.3 KiB
Dart
44 lines
1.3 KiB
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
/// Source maps library.
|
|
///
|
|
/// ## Installing ##
|
|
///
|
|
/// Use [pub][] to install this package. Add the following to your
|
|
/// `pubspec.yaml` file.
|
|
///
|
|
/// dependencies:
|
|
/// source_maps: any
|
|
///
|
|
/// Then run `pub install`.
|
|
///
|
|
/// For more information, see the
|
|
/// [source_maps package on pub.dartlang.org][pkg].
|
|
///
|
|
/// ## Using ##
|
|
///
|
|
/// Create a source map using [SourceMapBuilder]. For example:
|
|
/// var json = (new SourceMapBuilder()
|
|
/// ..add(inputSpan1, outputSpan1)
|
|
/// ..add(inputSpan2, outputSpan2)
|
|
/// ..add(inputSpan3, outputSpan3)
|
|
/// .toJson(outputFile);
|
|
///
|
|
/// Use the [Span] and [SourceFile] classes to specify span locations.
|
|
///
|
|
/// Parse a source map using [parse], and call `spanFor` on the returned mapping
|
|
/// object. For example:
|
|
/// var mapping = parse(json);
|
|
/// mapping.spanFor(outputSpan1.line, outputSpan1.column)
|
|
///
|
|
/// [pub]: http://pub.dartlang.org
|
|
/// [pkg]: http://pub.dartlang.org/packages/source_maps
|
|
library source_maps;
|
|
|
|
export "builder.dart";
|
|
export "parser.dart";
|
|
export "printer.dart";
|
|
export "span.dart";
|