Commit 4df6f4f
authored
feat: builder from existing instance (#53)
* chore: Employee2 generated code example
* feat: constructor with instance
* chore: expected results with constructor with instance
* feat: FromExistingInterface
* feat: FromExistingInterface
* chore: adapt tests for any step interface
* feat: FromExistingMethodGenerator
* chore: overwrite tests with new generation
* test: CanCreateThreeMemberClassFromExisting
* docs(01_Basics): explain FromExisting
* docs(README.md): add paragraph about `FromExisting`
* docs(01_Basics): clarify FromExisting
* chore: bump nuget version
* docs(README): update doc comments image1 parent 575c5b8 commit 4df6f4f
241 files changed
Lines changed: 3562 additions & 16 deletions
File tree
- media
- src
- M31.FluentApi.Generator
- CodeGeneration
- CodeBoardActors
- BuilderMethodsGeneration
- CodeBoardElements
- M31.FluentApi.Storybook
- M31.FluentApi.Tests/CodeGeneration/TestClasses
- Abstract
- AliasNamespaceClass
- CollectionInterfaceMemberClass
- CollectionMemberClassWithSuppression
- CollectionMemberClass
- CollectionNullableArrayClass
- ContinueWithAfterCompoundClass
- ContinueWithInForkClass
- ContinueWithOfOverloadedMethodClass
- ContinueWithSelfClass
- CustomFluentMethodNameClass
- DefaultFluentMethodNameClass
- EmptyClass
- FluentApiComments
- CommentedCompoundClass
- CommentedLambdaCollectionClass
- CommentedMethodsClass
- CommentedPropertiesClassAdvanced
- CommentedPropertiesClass
- IncompletelyCommentedPropertyClass
- RedundantCommentCompoundClass
- WronglyCommentedClass2
- WronglyCommentedClass
- FluentDefaultMemberClass
- FluentLambdaClassInDifferentNamespace
- FluentLambdaClass
- FluentLambdaCollectionClass
- FluentLambdaCompoundClass
- FluentLambdaCompoundOfSameTypeClass
- FluentLambdaManyCollectionsClass
- FluentLambdaManyPrivateCollectionsClass
- FluentLambdaNullablePropertyClass
- FluentLambdaRecursiveClass
- FluentLambdaSingleStepClass
- FluentMethodClass
- FluentMethodDefaultValuesClass
- FluentMethodParameterModifiersClass
- FluentNullableClass
- FluentNullableNoNullableAnnotationClass
- FluentNullableNoNullableAnnotationPrivateSetClass
- FluentReturnMultiStepClass
- FluentReturnMultiStepPrivateMethodsClass
- FluentReturnSingleStepClass
- FluentReturnSingleStepPrivateMethodsClass
- ForkClass
- FullyQualifiedTypeClass
- GenericClassPrivateConstructor
- GenericClassPrivateDefaultConstructor
- GenericClassWithConstraints
- GenericClassWithGenericMethods
- GenericClassWithPrivateGenericMethods
- GenericClass
- GenericMethodWithConstraintsClass
- GenericOverloadedMethodClass
- GenericOverloadedPrivateMethodClass
- GetInitPropertyClass
- GetPrivateInitPropertyClass
- GetPrivateSetPropertyClass
- InheritedClassPrivateSetters
- InheritedClassProtectedMembers
- InheritedClassProtectedSetters
- InheritedClass
- InheritedRecord
- InternalClass
- InternalPropertyClass
- KeywordClass
- NonGenericCollectionMemberClass
- NullablePredicateAndCollectionClass
- OneMemberClass
- OverloadedMethodClass
- ParameterAnnotationsPrivateConstructorClass
- ParameterAnnotationsPublicConstructorClass
- PartialClass
- PredicateClass
- PredicatePrivateFieldClass
- PrivateConstructorClassWithParams
- PrivateConstructorClass
- PrivateFieldClass
- PrivateFluentMethodClass
- PrivateFluentMethodNullableParameterClass
- PrivateFluentMethodParameterModifiersClass
- PrivateReadonlyFieldClass
- PrivateUnderscoreFieldClass
- PublicFieldClass
- PublicReadonlyFieldClass
- SameNameMemberClass
- SkippableFirstMemberClass
- SkippableFirstTwoMembersClass
- SkippableForkMembersClass
- SkippableLoopClass
- SkippableMemberClass
- SkippableSeveralMembersClass
- SkippableTwoLoopsClass
- ThreeMemberClass
- ThreeMemberRecordPrimaryConstructor
- ThreeMemberRecordStruct
- ThreeMemberRecord
- ThreeMemberStruct
- ThreePrivateMembersClass
- TryBreakFluentApiClass1
- TryBreakFluentApiClass2
- TryBreakFluentApiClass3
- TwoMemberClass
- TwoParameterCompoundClassReversedParameters
- TwoParameterCompoundClass
- DocumentedStudentClass
- PersonClass
- StudentClass
- M31.FluentApi
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
502 | 502 | | |
503 | 503 | | |
504 | 504 | | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
505 | 517 | | |
506 | 518 | | |
507 | 519 | | |
| |||
592 | 604 | | |
593 | 605 | | |
594 | 606 | | |
595 | | - | |
| 607 | + | |
Loading
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
95 | 109 | | |
96 | 110 | | |
97 | 111 | | |
| |||
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
14 | 20 | | |
15 | | - | |
| 21 | + | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
62 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
112 | 128 | | |
113 | 129 | | |
114 | 130 | | |
115 | | - | |
| 131 | + | |
116 | 132 | | |
117 | 133 | | |
118 | 134 | | |
119 | 135 | | |
120 | 136 | | |
121 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
122 | 149 | | |
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| 49 | + | |
48 | 50 | | |
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | | - | |
52 | | - | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| |||
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | | - | |
| 41 | + | |
34 | 42 | | |
35 | 43 | | |
36 | 44 | | |
| |||
0 commit comments