-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #152 from Workiva/fixed_getters_setters_and_field_…
…relationships FEDX-1670: Fixed getters, setters, and field relationships
- Loading branch information
Showing
5 changed files
with
88 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,8 @@ jobs: | |
checks: | ||
uses: Workiva/gha-dart-oss/.github/workflows/[email protected] | ||
|
||
sbom: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dart-lang/setup-dart@v1 | ||
with: | ||
sdk: 2.19.6 | ||
- uses: anchore/sbom-action@v0 | ||
with: | ||
path: ./ | ||
format: cyclonedx-json | ||
build: | ||
uses: Workiva/gha-dart-oss/.github/workflows/[email protected] | ||
|
||
snapshots: | ||
runs-on: ubuntu-latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
abstract class Mammal { | ||
String get hierarchy; | ||
String get someGetter; | ||
set someSetter(String v); | ||
String field = ''; | ||
} | ||
|
||
abstract class Animal extends Mammal { | ||
String sound() => 'NOISE!'; | ||
|
||
@override | ||
String field = 'asdf'; | ||
} | ||
|
||
mixin SwimAction { | ||
void execute() => print('swimming...'); | ||
} | ||
|
||
class Dog extends Animal with SwimAction { | ||
@override | ||
String field = 'otherVal'; | ||
|
||
@override | ||
String sound() => 'woof'; | ||
|
||
@override | ||
String get hierarchy => 'dog.animal.mammal'; | ||
String get someGetter => 'value'; | ||
|
||
@override | ||
set someSetter(String v) {}; | ||
} |
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