Skip to content

Commit ae941b9

Browse files
authored
Tighten constraint on source_span (#213)
Currently it's possible to resolve to a version that won't work because it's missing the `SourceFile.fromString()` constructor.
1 parent 87a7f78 commit ae941b9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
## 0.6.1+1
2+
3+
* Tighten constraint on `source_span`.
4+
15
## 0.6.1
26

37
* Added `spanForElement`; returns a `SourceSpan` for an analyzer `Element`.
4-
58
* Logs a _warning_ to the console when a `GeneratorBuilder` outputs a part file
69
for a given input, but that input does not define `part 'name.g.dart';`.
710

@@ -11,11 +14,9 @@
1114
returns annotations that are _assignable_ to the `TypeChecker`'s type. As a
1215
result we've added `#annotationsOfExact|firstAnnotationOfExact` which has the
1316
old behavior for precise checks.
14-
1517
* `TypeChecker#annotations...`-methods now throw a `StateError` if one or more
1618
annotations on an element are not resolvable. This is usually a sign of a
1719
mispelling, missing import, or missing dependency.
18-
1920
* Added `TypeChecker.any`, which delegates to multiple other `TypeChecker`
2021
implementations when making a type check.
2122

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: source_gen
2-
version: 0.6.1
2+
version: 0.6.1+1
33
author: Dart Team <[email protected]>
44
description: Automated source code generation for Dart.
55
homepage: https://github.com/dart-lang/source_gen
@@ -11,7 +11,7 @@ dependencies:
1111
collection: ^1.1.2
1212
dart_style: '>=0.1.7 <2.0.0'
1313
path: ^1.3.2
14-
source_span: ^1.0.0
14+
source_span: ^1.4.0
1515
dev_dependencies:
1616
build_runner: ^0.3.2
1717
build_test: ^0.6.0

0 commit comments

Comments
 (0)