Commit Graph

28 Commits

Author SHA1 Message Date
nweiz@google.com 1afe3964ca Remove support for the old Span classes from source_maps.
This releases source_maps 0.10.0, code_transformers 0.2.0+2, observe 0.11.0+3,
and polymer 0.12.0+4.

BUG=19930
R=sigmund@google.com

Review URL: https://codereview.chromium.org//421723004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38803 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-31 22:04:31 +00:00
nweiz@google.com 434042a5f4 Deprecate the source_maps span classes.
This also updates source_maps to take the new classes where possible.

BUG=19930
R=sigmund@google.com

Review URL: https://codereview.chromium.org//402843003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38524 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-23 23:17:23 +00:00
lrn@google.com 1715b6a60a Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

Committed: https://code.google.com/p/dart/source/detail?r=38373

Committed: https://code.google.com/p/dart/source/detail?r=38378

Review URL: https://codereview.chromium.org//396603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38379 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 09:25:48 +00:00
lrn@google.com 6bb63f18d6 Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

Committed: https://code.google.com/p/dart/source/detail?r=38373

Review URL: https://codereview.chromium.org//396603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38378 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 09:22:58 +00:00
lrn@google.com cfa929090c Use the new "offset" name in span.dart too.
Review URL: https://codereview.chromium.org//397343005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38376 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 08:57:34 +00:00
lrn@google.com b4d26e022c Change "FormatException.position" to be named "offset".
Address comments on SpanFormatException changes.

R=nweiz@google.com

Review URL: https://codereview.chromium.org//396603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38373 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-18 08:22:32 +00:00
tjblasi@google.com 4c7ba9f6bd Allow updating the targetUrl property of SingleMapping.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//397693002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38245 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-15 18:07:06 +00:00
tjblasi@google.com eefeeb73aa Adding support for sourceRoot to the SingleMapping class.
BUG=
R=sigmund@google.com

Review URL: https://codereview.chromium.org//383823002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38241 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-15 16:47:12 +00:00
lrn@google.com ec91cea3da Fix class implementing FormatException getting warnings.
Update mirrors-used-test count.

R=kustermann@google.com

Review URL: https://codereview.chromium.org//392563003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38182 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-14 09:24:11 +00:00
tjblasi@google.com 890433d8f7 Moving logic for writing source maps from SourceMapBuilder into the Mapping class.
R=sigmund@google.com

Review URL: https://codereview.chromium.org//372153002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@38073 260f80e4-7a28-3924-810f-c04153c831b5
2014-07-08 22:13:43 +00:00
nweiz@google.com 618df8243a Fix a bug in FixedSpan.getLocationMessage.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//346993002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37531 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-20 02:12:33 +00:00
nweiz@google.com c9e7ddb65f Improve the readability of some human-consumed strings in source_maps.
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//346983002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37530 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-20 01:55:41 +00:00
nweiz@google.com 476d5555bd Add SpanException and SpanFormatException classes to source_maps.
It's often useful to associate source range information with an
exception in a way that will get printed along with that exception but
can be pulled out and manipulated directly. It's especially useful if
there's a common superclass/interface for doing so that can be shared
across packages. This adds that superclass.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//348493004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@37509 260f80e4-7a28-3924-810f-c04153c831b5
2014-06-19 19:28:45 +00:00
nweiz@google.com 9f3e165c1e Make source map location information more readable.
This changes "file:1:2" to "line 1, column 2 of file" and ":1:2" to
"line 1, column 2" in [SourceFile.getLocationMessage]. The more
machine-readable colon-separated format doesn't make sense for a
message intended for humans.

Since [Location.formatString] seems more likely to be consumed by
machines, its format was left as-is.

This also prepares version 0.9.1 for release.

This was previously submitted as r36603. That caused buildbot errors and was
rolled back by r36615. This CL fixes the test errors in r36603.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//304603003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36717 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-27 23:01:24 +00:00
ricow@google.com 1bec2a1981 Revert revision 36603
This is making 60% of the bots red

Review URL: https://codereview.chromium.org//303493002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36615 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-26 05:52:05 +00:00
nweiz@google.com 22ae34a476 Make source map location information more readable.
This changes "file:1:2" to "line 1, column 2 of file" and ":1:2" to
"line 1, column 2" in [SourceFile.getLocationMessage]. The more
machine-readable colon-separated format doesn't make sense for a
message intended for humans.

Since [Location.formatString] seems more likely to be consumed by
machines, its format was left as-is.

This also prepares version 0.9.1 for release.

R=sigmund@google.com

Review URL: https://codereview.chromium.org//300583002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@36603 260f80e4-7a28-3924-810f-c04153c831b5
2014-05-24 00:52:08 +00:00
zarah@google.com d77b7e50a2 Support unmapped areas in source maps.
R=johnniwinther@google.com

Review URL: https://codereview.chromium.org//237123003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@35307 260f80e4-7a28-3924-810f-c04153c831b5
2014-04-23 07:57:14 +00:00
floitsch@google.com 74da0c7286 Remove usage of dart:json.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//23596007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26789 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-28 14:05:11 +00:00
floitsch@google.com 1887b5ca49 Some more removals of dart:utf.
R=jmesserly@google.com, lrn@google.com, nweiz@google.com

Review URL: https://codereview.chromium.org//22909059

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@26712 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-27 13:18:34 +00:00
sigmund@google.com 1df9a489d2 Make observable transform a barback transform.
R=jmesserly@google.com, nweiz@google.com, rnystrom@google.com

Review URL: https://codereview.chromium.org//22396004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25985 260f80e4-7a28-3924-810f-c04153c831b5
2013-08-09 22:29:38 +00:00
sigmund@google.com 3de7c9695f Fix source spans hashcode implementation
R=justinfagnani@google.com

Review URL: https://codereview.chromium.org//20600002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25514 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-26 00:50:29 +00:00
sigmund@google.com 19d6157bc3 Address hint discovered by dart2js: add hashCode to source_maps.Span
R=dgrove@google.com

Review URL: https://codereview.chromium.org//19315003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25050 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-16 16:01:36 +00:00
sigmund@google.com 3379860d8d Fix bug in source-maps parsing: parser failed when most information could be
inferred. This fixes bug http://dartbug.com/11782

R=dgrove@google.com

Review URL: https://codereview.chromium.org//19019006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24981 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-12 23:14:38 +00:00
sigmund@google.com ade668bfe4 Fixes in sourcemaps discovered in csslib
R=dgrove@google.com

Review URL: https://codereview.chromium.org//18749005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24881 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-10 16:56:00 +00:00
sigmund@google.com 448ea8ed86 Fixes source map bug: getLocationMessage was incorrect on file segments
R=jmesserly@google.com

Review URL: https://codereview.chromium.org//18083030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@24759 260f80e4-7a28-3924-810f-c04153c831b5
2013-07-03 22:26:55 +00:00
sethladd@google.com 8fd2c2e5ea add installation instructions to pkg packages
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
2013-04-19 20:51:10 +00:00
kevmoo@j832.com 470b770a51 lib/utf: remove codepointsToString
point folks to use String.fromCharCodes

Review URL: https://codereview.chromium.org//13493020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21151 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 13:51:05 +00:00
sigmund@google.com 68a26315ef Move source maps package to the dart repo, so it can be used by other internal
tools.

Review URL: https://codereview.chromium.org//12207008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20300 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 23:41:50 +00:00