-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Warn if .over_react.g.dart part is missing.
- Loading branch information
1 parent
f24a057
commit 93d4593
Showing
4 changed files
with
58 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
3 changes: 3 additions & 0 deletions
3
test_fixtures/source_files/missing_over_react_g_part/library.dart
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import 'package:over_react/over_react.dart'; | ||
|
||
part 'part.dart'; |
17 changes: 17 additions & 0 deletions
17
test_fixtures/source_files/missing_over_react_g_part/part.dart
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
part of 'library.dart'; | ||
|
||
@Factory() | ||
UiFactory<BasicPartOfLibProps> BasicPartOfLib = _$BasicPartOfLib; | ||
|
||
@Props() | ||
class _$BasicPartOfLibProps extends UiProps { | ||
String basicProp; | ||
} | ||
|
||
@Component() | ||
class BasicPartOfLibComponent extends UiComponent<BasicPartOfLibProps> { | ||
@override | ||
render() { | ||
return Dom.div()('foo'); | ||
} | ||
} |