R=rnystrom@google.com Review URL: https://codereview.chromium.org//754463002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@41921 260f80e4-7a28-3924-810f-c04153c831b5
1.7 KiB
1.0.2
-
Avoid unintentionally allocating extra objects for internal
FileSpanoperations. -
Ensure that
SourceSpan.operator==works on arbitraryObjects.
1.0.1
- Use a more compact internal representation for
FileSpan.
1.0.0
This package was extracted from the
source_maps package, but the
API has many differences. Among them:
-
Spanhas been renamed toSourceSpanandLocationhas been renamed toSourceLocationto clarify their purpose and maintain consistency with the package name. Likewise,SpanExceptionis nowSourceSpanExceptionandSpanFormatExceptionis notSourceSpanFormatException. -
FixedSpanandFixedLocationhave been rolled into theSpanandLocationclasses, respectively. -
SourceFileis more aggressive about validating its arguments. Out-of-bounds lines, columns, and offsets will now throw errors rather than be silently clamped. -
SourceSpan.sourceUrl,SourceLocation.sourceUrl, andSourceFile.urlnow returnUriobjects rather thanStrings. The constructors allow eitherStrings orUris. -
Span.getLocationMessageandSourceFile.getLocationMessageare nowSourceSpan.messageandSourceFile.message, respectively. Rather than taking both auseColorand acolorparameter, they now take a singlecolorparameter that controls both whether and which color is used. -
Span.isIdentifierhas been removed. This property doesn't make sense outside of a source map context. -
SourceFileSegmenthas been removed. This class wasn't widely used and was inconsistent in its choice of which parameters were considered relative and which absolute.