Commit 2c83b5c
authored
feat: unsafe accessors (#48)
* chore: migration to .NET 8
* test: ThreePrivateMembersClass with UnsafeAccessor
* fix: remove requires reflection
* wip: use unsafe accessor
* fix: publiclyWritable
* wip: unsafe accessor
* fix: ThreePrivateMembersClass test
* test: failing PrivateFluentMethodClass test
* feat: InnerBodyForMethodGenerator
* test: FluentReturnMultiStepPrivateMethodsClass
* test: PrivateConstructorClass
* test: GenericClassPrivateConstructor
* test: ThreeMemberRecordPrimaryConstructor
* test: CanExecuteThreeMemberRecordPrimaryConstructor
* fix: ThreeMemberRecordPrimaryConstructor expected
* test: ThreeMemberRecordPrimaryConstructor
* fix: equality tests
* test: GenericClassPrivateDefaultConstructor
* wip: UsageTests
* test: add GenericClassPrivateConstructor failing usage test
* wip: enabled tests
* chore: upgrade to .NET 10
* chore(M31.FluentApi.Tests): update nuget packages
* test: ParameterAnnotationsPublicConstructorClass / ParameterAnnotationsPrivateConstructorClass
* chore: address warnings
* test: PrivateFluentMethodNullableParameterClass
* refactor: extract CreateParameters method
* test: PrivateFluentMethodParameterModifiersClass
* test: PrivateReadonlyFieldClass (wip)
* test: PrivateReadonlyFieldClass
* test: PrivateUnderscoreFieldClass
* test: PrivateFieldClass
* test: PredicatePrivateFieldClass
* test: InheritedRecord (wip)
* fix: InheritedRecord: CreateStudent.expected.txt
* test: InheritedRecord
* test: InheritedClassPrivateSetters
* test: GetPrivateInitPropertyClass
* test: CollectionNullableArrayClass
* test: ContinueWithAfterCompoundClass
* test: ContinueWithOfOverloadedMethodClass
* test: ContinueWithSelfClass
* test: CommentedMethodsClass
* test: CommentedPropertiesClassAdvanced
* test: FluentNullableNoNullableAnnotationPrivateSetClass
* test: PublicReadonlyFieldClass
* test: PartialClass
* test: TryBreakFluentApiClass1
* test: TryBreakFluentApiClass2
* test: DocumentedStudentClass
* test: Student
* test: ThreeMemberStruct
* usage test: ContinueWithInForkClass
* test: move usage tests
* usage tests: migrated all tests
* fix: declaring class name
* test: GenericOverloadedPrivateMethodClass
* test: write expected
* test: GenericClassWithGenericMethods
* fix: test method names
* test: PrivateConstructorClassWithParams
* fix: remove todo
* fix: exlamation mark in set methods
* chore: add example and story book project
* chore: suppress warnings
* chore: mention UnsafeAccessors
* chore: 2.0.0 and changelog1 parent 38b7dd4 commit 2c83b5c
File tree
190 files changed
+4054
-3218
lines changed- src
- ExampleProject
- M31.FluentApi.Generator
- CodeBuilding
- CodeGeneration
- CodeBoardActors
- BuilderMethodsGeneration
- Commons
- InnerBodyGeneration
- CodeBoardElements
- SourceAnalyzers
- FluentApiComments
- SourceGenerators
- M31.FluentApi.Storybook
- M31.FluentApi.Tests
- AnalyzerAndCodeFixes
- Helpers
- CodeGeneration
- TestClasses
- Abstract
- CollectionNullableArrayClass
- ContinueWithAfterCompoundClass
- ContinueWithInForkClass
- ContinueWithOfOverloadedMethodClass
- ContinueWithSelfClass
- FluentApiComments
- CommentedMethodsClass
- CommentedPropertiesClassAdvanced
- FluentLambdaClass
- FluentLambdaCollectionClass
- FluentLambdaCompoundClass
- FluentLambdaManyCollectionsClass
- FluentLambdaManyPrivateCollectionsClass
- FluentLambdaNullablePropertyClass
- FluentLambdaRecursiveClass
- FluentLambdaSingleStepClass
- FluentMethodClass
- FluentNullableNoNullableAnnotationPrivateSetClass
- FluentReturnMultiStepClass
- FluentReturnMultiStepPrivateMethodsClass
- FluentReturnSingleStepPrivateMethodsClass
- GenericClassPrivateConstructor
- GenericClassPrivateDefaultConstructor
- GenericClassWithGenericMethods
- GenericClassWithPrivateGenericMethods
- GenericOverloadedMethodClass
- GenericOverloadedPrivateMethodClass
- GetInitPropertyClass
- GetPrivateInitPropertyClass
- GetPrivateSetPropertyClass
- InheritedClassPrivateSetters
- InheritedClassProtectedMembers
- InheritedClassProtectedSetters
- InheritedClass
- InheritedRecord
- NullablePredicateAndCollectionClass
- OverloadedMethodClass
- ParameterAnnotationsPrivateConstructorClass
- ParameterAnnotationsPublicConstructorClass
- PartialClass
- PredicatePrivateFieldClass
- PrivateConstructorClassWithParams
- PrivateConstructorClass
- PrivateFieldClass
- PrivateFluentMethodClass
- PrivateFluentMethodNullableParameterClass
- PrivateFluentMethodParameterModifiersClass
- PrivateReadonlyFieldClass
- PrivateUnderscoreFieldClass
- PublicReadonlyFieldClass
- SameNameMemberClass
- SkippableFirstMemberClass
- SkippableLoopClass
- SkippableMemberClass
- SkippableSeveralMembersClass
- ThreeMemberClass
- ThreeMemberRecordPrimaryConstructor
- ThreePrivateMembersClass
- TryBreakFluentApiClass1
- TryBreakFluentApiClass2
- 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.
190 files changed
+4054
-3218
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
37 | 42 | | |
38 | 43 | | |
39 | 44 | | |
40 | | - | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
112 | 117 | | |
113 | 118 | | |
114 | 119 | | |
115 | | - | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| 31 | + | |
29 | 32 | | |
30 | 33 | | |
31 | 34 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
58 | 66 | | |
59 | 67 | | |
60 | 68 | | |
| |||
113 | 121 | | |
114 | 122 | | |
115 | 123 | | |
| 124 | + | |
116 | 125 | | |
117 | 126 | | |
118 | 127 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
Lines changed: 23 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 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 | 29 | | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | | - | |
| 37 | + | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
56 | 60 | | |
| |||
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
75 | 84 | | |
76 | 85 | | |
77 | 86 | | |
| |||
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
| 97 | + | |
88 | 98 | | |
89 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| |||
96 | 108 | | |
97 | 109 | | |
98 | 110 | | |
99 | | - | |
| 111 | + | |
100 | 112 | | |
101 | 113 | | |
102 | 114 | | |
103 | 115 | | |
104 | 116 | | |
105 | 117 | | |
106 | 118 | | |
107 | | - | |
| 119 | + | |
108 | 120 | | |
109 | 121 | | |
110 | 122 | | |
| |||
Lines changed: 1 addition & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 53 | + | |
63 | 54 | | |
64 | 55 | | |
65 | 56 | | |
| |||
Lines changed: 1 addition & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 88 | + | |
97 | 89 | | |
98 | 90 | | |
99 | 91 | | |
| |||
Lines changed: 35 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 | + | |
0 commit comments