Skip to content

Commit

Permalink
Fix deprecated use of classElements
Browse files Browse the repository at this point in the history
  • Loading branch information
letsar committed Jan 23, 2019
1 parent 5295a3d commit a118012
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions kiwi_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.3.1
### Fixed
* Upgrade dependencies and fix a deprecated error.

## 0.3.0
### Fixed
* Upgrade dependencies
Expand Down
2 changes: 1 addition & 1 deletion kiwi_generator/lib/src/injector_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class InjectorGenerator extends Generator {
String generate(LibraryReader library, BuildStep buildStep) {
// An injector is an abstract class where all abstract methods are
// annotated with Register.
final injectors = library.classElements
final injectors = library.classes
.where((c) =>
c.isAbstract &&
c.methods.where((m) => m.isAbstract).isNotEmpty &&
Expand Down
4 changes: 2 additions & 2 deletions kiwi_generator/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: kiwi_generator
description: Generates dependency injection code using the kiwi package to reduce development time.
version: 0.3.0
version: 0.3.1
author: Romain Rastel <[email protected]>
homepage: https://github.com/letsar/kiwi

Expand All @@ -15,7 +15,7 @@ dependencies:
dart_style: '>= 1.0.0 <1.3.0'
kiwi: '>=0.1.0 <0.2.0'
path: ^1.6.2
source_gen: ^0.9.1
source_gen: ^0.9.4

dev_dependencies:
build_runner: ^1.1.0
Expand Down

0 comments on commit a118012

Please sign in to comment.