Commit a1ed7a1
authored
feat: generics (#11)
* feat(Generics): remove UnsupportedGenericType diagnostic and test
* feat(Generics): add failing test and augment TypeData class
* chore: move warning in FullyQualifiedTypeClass.Student
* feat(Generics): add generic type parameters to builder class
* improve(Modifiers)
* feat(Generics): generic fluent API classes
* test: GenericClassPrivateConstructor
* refactor: rename GenericsInfo to GenericInfo
* test: add failing test GenericClassWithConstraints
* feat(Generics): add GenericTypeConstraint class
* refactor(GenericInfo): make constructor internal
* refactor: move generic classes to separate folder
* feat(Generics): GenericConstraints and GenericTypeParameter abstractions
* feat(Generics): class generics work
* feat: split implemented interfaces across several lines
* test: add GenericClassWithGenericMethod and GenericMethodWithConstraintsClass tests
* docs(Readme): remove youtube and twitter reference
* refactor: introduce Generics class
* feat(Generics): add GenericInfo to MethodSymbolInfo
* feat(Generics): generic methods
* refactor: rename GenericsInfo to GenericInfo
* fix(GenericConstraints): remove unused property ParametersWithConstraints
* refactor: add GenericConstraintClause class
* fix: formatting
* refactor: memberToSetMemberCode and methodToCallMethodCode (wip)
* refactor: introduce class InnerBodyCreationDelegates
* docs: improve clarifying comments
* feat(Generics): method overloads
* test: improve GenericClassWithGenericMethod test
* feat(Generics): get generic method via reflection
* test: CanExecuteGenericClassWithGenericMethods
* fix: MakeGenericMethod before Invoke for generic methods
* test: CanExecuteGenericClassWithOverloadedGenericMethod
* test: CanExecuteGenericClassWithPrivateOverloadedGenericMethod
* test: rerun tests with new generated GetMethod code for private methods
* test: detect duplicate overloaded methods
* fix(InnerBodyCreationDelegates): don't compute method identities
* improve: add blank lines between interface method signatures
* fix: formatting
* docs: add fluent api logo
* chore: increase nuget versions to 1.2.01 parent 7900286 commit a1ed7a1
File tree
137 files changed
+3507
-309
lines changed- media
- src
- M31.FluentApi.Generator
- CodeBuilding
- CodeGeneration
- CodeBoardActors
- BuilderStepsGeneration
- Commons
- DuplicateMethodsChecking
- InnerBodyGeneration
- MethodCreation
- Collections
- Forks
- CodeBoardElements
- SourceAnalyzers
- SourceGenerators
- Generics
- M31.FluentApi.Tests
- AnalyzerAndCodeFixes
- TestClasses
- DuplicateMethodClass4
- DuplicateMethodClass5
- GenericClass
- CodeGeneration
- Helpers
- TestClasses
- Abstract
- CollectionInterfaceMemberClass
- CollectionMemberClass
- ContinueWithSelfClass
- CustomFluentMethodNameClass
- DefaultFluentMethodNameClass
- FluentDefaultMemberClass
- FluentMethodClass
- FluentMethodDefaultValuesClass
- FluentMethodParameterModifiersClass
- FluentNullableClass
- FullyQualifiedTypeClass
- GenericClassPrivateConstructor
- GenericClassWithConstraints
- GenericClassWithGenericMethods
- GenericClassWithOverloadedGenericMethod
- GenericClassWithPrivateGenericMethods
- GenericClassWithPrivateOverloadedGenericMethod
- GenericClass
- GenericMethodWithConstraintsClass
- InternalClass
- NonGenericCollectionMemberClass
- NullablePredicateAndCollectionClass
- OverloadedMethodClass
- PrivateFluentMethodClass
- PrivateFluentMethodParameterModifiersClass
- SameNameMemberClass
- ThreeMemberClass
- ThreeMemberRecordStruct
- ThreeMemberRecord
- ThreeMemberStruct
- PersonClass
- StudentClass
- Helpers
- M31.FluentApi
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
137 files changed
+3507
-309
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | | - | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | 39 | | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
36 | 48 | | |
37 | 49 | | |
38 | 50 | | |
| |||
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
66 | | - | |
| 78 | + | |
| 79 | + | |
67 | 80 | | |
68 | | - | |
| 81 | + | |
69 | 82 | | |
70 | 83 | | |
71 | | - | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
72 | 101 | | |
73 | 102 | | |
74 | 103 | | |
75 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
76 | 109 | | |
77 | 110 | | |
78 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
| |||
78 | 90 | | |
79 | 91 | | |
80 | 92 | | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
81 | 103 | | |
82 | 104 | | |
83 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
84 | 111 | | |
85 | 112 | | |
86 | 113 | | |
| |||
126 | 153 | | |
127 | 154 | | |
128 | 155 | | |
129 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
130 | 162 | | |
131 | 163 | | |
132 | | - | |
| 164 | + | |
133 | 165 | | |
134 | 166 | | |
135 | 167 | | |
| |||
147 | 179 | | |
148 | 180 | | |
149 | 181 | | |
150 | | - | |
| 182 | + | |
151 | 183 | | |
152 | 184 | | |
153 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
25 | 37 | | |
26 | 38 | | |
27 | 39 | | |
28 | 40 | | |
29 | 41 | | |
30 | 42 | | |
31 | 43 | | |
32 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
33 | 47 | | |
34 | 48 | | |
35 | 49 | | |
Lines changed: 18 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 | + | |
Lines changed: 29 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 | + | |
Lines changed: 43 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 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments