Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add isRaw to Query annotation #315

Draft
wants to merge 14 commits into
base: develop
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Include interface and mixin methods in DAO methods
  • Loading branch information
vitusortner committed Mar 14, 2020
commit 5929a908f8913d20ee406026d2da63b7ffe8c011
10 changes: 3 additions & 7 deletions floor_generator/lib/processor/dao_processor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ class DaoProcessor extends Processor<Dao> {
@override
Dao process() {
final name = _classElement.displayName;
final methods = _classElement.methods;

dynamic _super = _classElement.supertype;
while (_super != null) {
methods.addAll(_super.methods);
_super = _super.superclass;
}
final supertypeMethods =
_classElement.allSupertypes.expand((type) => type.methods);
final methods = [..._classElement.methods, ...supertypeMethods];

final queryMethods = _getQueryMethods(methods);
final insertionMethods = _getInsertionMethods(methods);
Expand Down