Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

Commit df948f8

Browse files
matanlureyleonsenft
authored andcommitted
Update source_gen v0.8.3+1 -> 0.9.1.
## 0.9.1 * The result of `ConstantReader.revive()` now returns a `Revivable` that assumes access to a private class, constructor, or function _instead_ of `null` where possible. This allows generators that use `part` files to still use this functionality _and_ allows generators that use separate libraries to emit more actionable error messages (i.e. `"cannot use private class _X"`). * `Revivable.isPrivate` now returns `true` when the underyling class was public but the constructor was private, or the `Revivable` was pointing to a top-level or static private field or method. Previously it was only `true` when referencing a private class. ## 0.9.0+1 * Fix `LibraryReader.classElements` to return classes from parts, if they exist, as well as from the defining library file. PiperOrigin-RevId: 212332039
1 parent 7f6858b commit df948f8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

_tests/test/compiler_integration/unrevivable_const_test.dart

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ void main() {
1717
final InjectorFactory example = null;
1818
''', errors: [
1919
allOf([
20-
// TODO(matanl): Improve after source_gen#374.
21-
// https://github.com/dart-lang/source_gen/issues/374
22-
contains('Could not reference const object'),
20+
contains('While attempting to resolve a constant value for a provider'),
2321
contains('TestClass'),
2422
]),
2523
]);

angular/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
code_builder: '^3.0.1'
3030
csslib: ^0.14.5
3131
path: ^1.6.1
32-
source_gen: ">=0.8.0 <0.10.0"
32+
source_gen: ">=0.9.1 <0.10.0"
3333
source_span: ^1.4.0
3434

3535
# === vvv REMOVE WHEN PUBLISHING vvv ===

angular_compiler/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dependencies:
1717
logging: '>=0.9.0 <0.12.0'
1818
meta: ^1.1.4
1919
path: ^1.6.1
20-
source_gen: ">=0.8.0 <0.10.0"
20+
source_gen: ">=0.9.1 <0.10.0"
2121
source_span: ^1.4.0
2222
stack_trace: ^1.9.1
2323

0 commit comments

Comments
 (0)