Skip to content

Commit 6b56f5b

Browse files
authored
Merge pull request #2 from trackd/feature/wide-impala
chore: 🔧 Update `ModuleVersion` to `0.4.1` and `ICSharpCode.Decompile…
2 parents 8d7be11 + d2214f7 commit 6b56f5b

4 files changed

Lines changed: 115 additions & 4 deletions

File tree

docs/en-us/New-DecompilerSetting.md

Lines changed: 111 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ Position: Named
8585
Accept pipeline input: False
8686
```
8787
88+
### -AlwaysMoveInitializer
89+
90+
Set DecompilerSettings.AlwaysMoveInitializer to $true.
91+
92+
```yaml
93+
Type: SwitchParameter
94+
Required: False
95+
Position: Named
96+
Accept pipeline input: False
97+
```
98+
8899
### -AlwaysQualifyMemberReferences
89100
90101
Set DecompilerSettings.AlwaysQualifyMemberReferences to $true.
@@ -272,6 +283,17 @@ Position: Named
272283
Accept pipeline input: False
273284
```
274285
286+
### -CheckForOverflowUnderflow
287+
288+
Set DecompilerSettings.CheckForOverflowUnderflow to $true.
289+
290+
```yaml
291+
Type: SwitchParameter
292+
Required: False
293+
Position: Named
294+
Accept pipeline input: False
295+
```
296+
275297
### -CovariantReturns
276298
277299
Set DecompilerSettings.CovariantReturns to $true.
@@ -383,6 +405,17 @@ Position: Named
383405
Accept pipeline input: False
384406
```
385407
408+
### -ExpandParamsArguments
409+
410+
Set DecompilerSettings.ExpandParamsArguments to $true.
411+
412+
```yaml
413+
Type: SwitchParameter
414+
Required: False
415+
Position: Named
416+
Accept pipeline input: False
417+
```
418+
386419
### -ExpandUsingDeclarations
387420
388421
Set DecompilerSettings.ExpandUsingDeclarations to $true.
@@ -405,6 +438,17 @@ Position: Named
405438
Accept pipeline input: False
406439
```
407440
441+
### -ExtensionMembers
442+
443+
Set DecompilerSettings.ExtensionMembers to $true.
444+
445+
```yaml
446+
Type: SwitchParameter
447+
Required: False
448+
Position: Named
449+
Accept pipeline input: False
450+
```
451+
408452
### -ExtensionMethods
409453
410454
Set DecompilerSettings.ExtensionMethods to $true.
@@ -438,6 +482,17 @@ Position: Named
438482
Accept pipeline input: False
439483
```
440484
485+
### -FirstClassSpanTypes
486+
487+
Set DecompilerSettings.FirstClassSpanTypes to $true.
488+
489+
```yaml
490+
Type: SwitchParameter
491+
Required: False
492+
Position: Named
493+
Accept pipeline input: False
494+
```
495+
441496
### -FixedBuffers
442497
443498
Set DecompilerSettings.FixedBuffers to $true.
@@ -526,6 +581,17 @@ Position: Named
526581
Accept pipeline input: False
527582
```
528583
584+
### -InlineArrays
585+
586+
Set DecompilerSettings.InlineArrays to $true.
587+
588+
```yaml
589+
Type: SwitchParameter
590+
Required: False
591+
Position: Named
592+
Accept pipeline input: False
593+
```
594+
529595
### -IntroduceIncrementAndDecrement
530596
531597
Set DecompilerSettings.IntroduceIncrementAndDecrement to $true.
@@ -584,7 +650,7 @@ Accept pipeline input: False
584650
### -LanguageVersion
585651
586652
C# Language version to be used by the decompiler
587-
Accepted values: CSharp1, CSharp2, CSharp3, CSharp4, CSharp5, CSharp6, CSharp7, CSharp7_1, CSharp7_2, CSharp7_3, CSharp8_0, CSharp9_0, CSharp10_0, CSharp11_0, Preview, CSharp12_0, Latest.
653+
Accepted values: CSharp1, CSharp2, CSharp3, CSharp4, CSharp5, CSharp6, CSharp7, CSharp7_1, CSharp7_2, CSharp7_3, CSharp8_0, CSharp9_0, CSharp10_0, CSharp11_0, CSharp12_0, CSharp13_0, CSharp14_0, CSharp15_0, Preview, Latest.
588654
589655
```yaml
590656
Type: LanguageVersion
@@ -758,6 +824,17 @@ Position: Named
758824
Accept pipeline input: False
759825
```
760826
827+
### -ParamsCollections
828+
829+
Set DecompilerSettings.ParamsCollections to $true.
830+
831+
```yaml
832+
Type: SwitchParameter
833+
Required: False
834+
Position: Named
835+
Accept pipeline input: False
836+
```
837+
761838
### -PatternBasedFixedStatement
762839
763840
Set DecompilerSettings.PatternBasedFixedStatement to $true.
@@ -923,6 +1000,17 @@ Position: Named
9231000
Accept pipeline input: False
9241001
```
9251002
1003+
### -RuntimeAsync
1004+
1005+
Set DecompilerSettings.RuntimeAsync to $true.
1006+
1007+
```yaml
1008+
Type: SwitchParameter
1009+
Required: False
1010+
Position: Named
1011+
Accept pipeline input: False
1012+
```
1013+
9261014
### -ScopedRef
9271015
9281016
Set DecompilerSettings.ScopedRef to $true.
@@ -1033,6 +1121,17 @@ Position: Named
10331121
Accept pipeline input: False
10341122
```
10351123
1124+
### -StructDefaultConstructorsAndFieldInitializers
1125+
1126+
Set DecompilerSettings.StructDefaultConstructorsAndFieldInitializers to $true.
1127+
1128+
```yaml
1129+
Type: SwitchParameter
1130+
Required: False
1131+
Position: Named
1132+
Accept pipeline input: False
1133+
```
1134+
10361135
### -SwitchExpressions
10371136
10381137
Set DecompilerSettings.SwitchExpressions to $true.
@@ -1198,6 +1297,17 @@ Position: Named
11981297
Accept pipeline input: False
11991298
```
12001299
1300+
### -UseObjectCreationOfGenericTypeParameter
1301+
1302+
Set DecompilerSettings.UseObjectCreationOfGenericTypeParameter to $true.
1303+
1304+
```yaml
1305+
Type: SwitchParameter
1306+
Required: False
1307+
Position: Named
1308+
Accept pipeline input: False
1309+
```
1310+
12011311
### -UsePrimaryConstructorSyntax
12021312
12031313
Set DecompilerSettings.UsePrimaryConstructorSyntax to $true.

module/ISpy.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@{
22
# Module manifest for ISpy
33
RootModule = 'lib/ISpy.dll'
4-
ModuleVersion = '0.4.0'
4+
ModuleVersion = '0.4.1'
55
GUID = '15ad5935-21a2-4eed-aeec-2232c7507dc2'
66
Author = 'trackd'
77
CompanyName = 'trackd'

src/ISpy.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
</PropertyGroup>
2525
<ItemGroup>
2626
<PackageReference Include="System.Management.Automation" Version="7.4" PrivateAssets="all" />
27-
<PackageReference Include="ICSharpCode.Decompiler" Version="9.1.0.7988" />
27+
<PackageReference Include="ICSharpCode.Decompiler" Version="10.1.0.8386" />
2828
<PackageReference Include="Roslynator.Analyzers" Version="4.*">
2929
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3030
<PrivateAssets>all</PrivateAssets>

src/Utilities/ILSpyDecompiler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace ISpy.Utilities;
1+
namespace ISpy.Utilities;
22

33
internal static class ILSpyDecompiler {
44
public static string DecompileMethod(MethodBase method, bool showXmlDocumentation = false, CSharpDecompiler? decompiler = null) {
@@ -116,6 +116,7 @@ internal static DecompilerSettings ApplyStroustrupFormatting(DecompilerSettings
116116
fmt.ElseNewLinePlacement = NewLinePlacement.NewLine;
117117
fmt.ElseIfNewLinePlacement = NewLinePlacement.NewLine;
118118
fmt.FinallyNewLinePlacement = NewLinePlacement.NewLine;
119+
fmt.WhileNewLinePlacement = NewLinePlacement.NewLine;
119120

120121
// Indentation and block layout
121122
fmt.IndentBlocks = true;

0 commit comments

Comments
 (0)