72 Commits

Author SHA1 Message Date
LA
a2ef94d6e5 同步更新 2025-12-06 17:22:05 +08:00
Dean Herbert
211954c994 Apply some new automated r# inspections 2025-02-18 11:40:39 +09:00
Huo Yaoyuan
2a7d8dce8e Enforce source generation testing with OptimizationLevel 2024-11-28 01:31:27 +08:00
Dean Herbert
6edcbd0ffc Fix some events tests are depending on not firing 2023-07-20 17:30:58 +09:00
Dean Herbert
3555aeefdd Add ForceRun flag to fix source generator tests 2023-07-20 16:38:13 +09:00
Dan Balasescu
b2fc50a20e Change source generators to only run for release builds
We've seen overheads of 100%+ in compile times. It doesn't make sense to
run these for debug releases as they are basically custom
release-targeting optimisations.
2023-07-20 15:52:38 +09:00
Dan Balasescu
e4ebfdb828 Add source generator for IsLongRunning property 2023-07-07 20:29:13 +09:00
Dean Herbert
b373f47638 Fix stray inspection showing up in rider 2023-06-20 17:41:21 +09:00
Dean Herbert
9664178a93 Merge branch 'master' into input-cache-sgen 2023-06-19 14:42:29 +09:00
Dan Balasescu
31df65ebb1 Fix nested DI candidates not analysed in non-candidate parent types 2023-06-15 19:06:13 +09:00
Dan Balasescu
879f241576 Add back KnownType to handle non-partial leafs 2023-06-15 16:47:12 +09:00
Dan Balasescu
8b623a1283 Match BDL SGen attributes by full type name 2023-05-26 15:06:49 +09:00
Dan Balasescu
d4238957c4 Reduce lambda captures 2023-05-26 14:55:48 +09:00
Dan Balasescu
4c302c89ea Remove unused using 2023-05-26 14:51:48 +09:00
Dan Balasescu
1f22d041c6 Use fully qualified interface names 2023-05-26 14:48:46 +09:00
Dan Balasescu
57ca0b852a Remove KnownType in favour of inspecting type hierarchy 2023-05-26 14:03:39 +09:00
Dan Balasescu
173bf19263 Fix tests not working due to naming 2023-05-26 11:51:49 +09:00
Dan Balasescu
9959f2cbcd Remove non-qualified type name precondition 2023-05-11 14:26:19 +09:00
Dan Balasescu
8268bc71cf Apply some simple reviews 2023-05-11 14:25:12 +09:00
Bartłomiej Dach
c179cc5d08 Merge branch 'master' into input-cache-sgen 2023-05-06 16:35:47 +02:00
Bartłomiej Dach
41e1c5bcf0 Rename {-> SyntaxName}Comparer
To avoid ambiguity when comparing with implementation of `Equals()`, as
the two use different members to test for equality.
2023-05-06 15:52:42 +02:00
Dan Balasescu
0fc89f56a3 Remove unnecessary interface 2023-04-29 02:33:16 +09:00
Dan Balasescu
9d15537f55 Add source generator for Drawable handle input cache 2023-04-29 02:29:28 +09:00
Dan Balasescu
6b84591891 Refactor generator for abstraction 2023-04-28 23:13:30 +09:00
Dan Balasescu
74bef951b2 Refactor multiphase tests to not use statics 2023-04-28 22:11:12 +09:00
Dan Balasescu
5bbf3cfe08 Re-namespace dependency SG classes 2023-04-28 22:04:35 +09:00
Salman Ahmed
ec707b4453 Revert "Update source generator to .NET 6"
This reverts commit cff691b2f8.
2022-12-22 19:40:34 +03:00
Salman Ahmed
2bdc1f5bbf Fix issues pointed out by .NET code style analysis 2022-12-22 12:49:48 +03:00
Salman Ahmed
cff691b2f8 Update source generator to .NET 6 2022-12-22 12:14:25 +03:00
Salman Ahmed
7a48e9cae7 Remove Roslyn 3.11 target 2022-12-22 12:14:25 +03:00
Alden Wu
cac7655dd7 Forward CLI args to sourcegen pack script's build step 2022-12-06 21:49:01 -08:00
Alden Wu
2109dbb284 Explicitly build sourcegen project before packing 2022-12-06 20:22:17 -08:00
Alden Wu
fe18b4962d Fix artifacts dir wildcard 2022-12-06 16:40:50 -08:00
Dan Balasescu
62d6eff523 Merge branch 'master' into multi-phase-test 2022-12-05 15:32:41 +09:00
Bartłomiej Dach
ebe85a59d8 Fix nullability annotations not being emitted on global:: prefixed type names 2022-12-04 14:55:49 +01:00
Bartłomiej Dach
7d796889e7 Protect non-keyword dynamically-emitted type names with global:: prefixes 2022-12-04 14:55:39 +01:00
Bartłomiej Dach
3b63630a8e Prefix all type names in literals with global:: 2022-12-04 13:08:23 +01:00
X9VoiD
a6e7955a92 Add DI source generator events
This will be mainly used for collecting statistics and state per run
2022-12-04 10:31:10 +00:00
Dean Herbert
7718facb27 Merge branch 'master' into generator-perf-improvements-2 2022-12-03 22:17:26 +09:00
Dan Balasescu
157852f7b4 Consume semantic model earlier, reduce layering 2022-12-03 04:51:05 +09:00
Dan Balasescu
485293484b Restructure for memoisation 2022-12-03 04:17:50 +09:00
Dean Herbert
51e729d14d Fix inconsistent body style inspection 2022-12-01 15:33:36 +09:00
Dan Balasescu
127a7bab6f Reduce code duplication between source generator classes 2022-11-30 15:08:39 +09:00
Dan Balasescu
ca72d0a2db Disable package analysis to clean output 2022-11-30 12:07:22 +09:00
Dan Balasescu
fe30be5646 Add source generator targets to nupkg 2022-11-30 12:07:09 +09:00
Dan Balasescu
4f297bde55 Rename build targets file 2022-11-30 12:07:00 +09:00
Dan Balasescu
acd755426b Fix indentation 2022-11-29 20:03:12 +09:00
Dan Balasescu
7dfb33514f Move common classes into the Common directory 2022-11-29 19:59:11 +09:00
Dan Balasescu
ab9cb70210 Remove suffix from names 2022-11-29 19:56:28 +09:00
Dan Balasescu
9cbdf6babc Rework structure 2022-11-29 19:49:22 +09:00