-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generator, but stay on analyzer 5.13 (#1401)
- Loading branch information
Showing
8 changed files
with
26 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 12 additions & 9 deletions
21
generator/test/error_test_data/missing_underscore.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
Not a realm type | ||
|
||
in: asset:pkg/test/error_test_data/missing_underscore.dart:7:8 | ||
╷ | ||
5 │ @RealmModel() | ||
6 │ class _Bad { | ||
│ ━━━━ in realm model for 'Bad' | ||
7 │ late Other other; | ||
│ ^^^^^ Other is not a realm model type | ||
╵ | ||
Did you intend to use _Other as type for 'other'? | ||
in: asset:pkg/test/error_test_data/missing_underscore.dart:8:8 | ||
╷ | ||
4 │ class Other {} // dummy stand-in for the generated class | ||
│ ━━━━━ | ||
... │ | ||
6 │ @RealmModel() | ||
7 │ class _Bad { | ||
│ ━━━━ in realm model for 'Bad' | ||
8 │ late Other other; | ||
│ ^^^^^ Other is not a realm model type | ||
╵ | ||
Add a @RealmModel annotation on 'Other', or an @Ignored annotation on 'other'. | ||
|