Skip to content

Commit b2bb69e

Browse files
author
machibuse
committed
Remove obsolete project ConsoleApp1 and introduce ClassVisitor to enhance syntax rewriting in Porticle.Grpc.GuidMapper.
1 parent 996fa62 commit b2bb69e

12 files changed

Lines changed: 28 additions & 89 deletions

File tree

Source/ConsoleApp1/.idea/.idea.ConsoleApp1/.idea/.gitignore

Lines changed: 0 additions & 13 deletions
This file was deleted.

Source/ConsoleApp1/.idea/.idea.ConsoleApp1/.idea/AndroidProjectSystem.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

Source/ConsoleApp1/.idea/.idea.ConsoleApp1/.idea/encodings.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

Source/ConsoleApp1/.idea/.idea.ConsoleApp1/.idea/indexLayout.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Source/ConsoleApp1/.idea/.idea.ConsoleApp1/.idea/vcs.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

Source/ConsoleApp1/ConsoleApp1.sln

Lines changed: 0 additions & 16 deletions
This file was deleted.

Source/ConsoleApp1/ConsoleApp1/ConsoleApp1.csproj

Lines changed: 0 additions & 17 deletions
This file was deleted.

Source/ConsoleApp1/ConsoleApp1/Program.cs

Lines changed: 0 additions & 3 deletions
This file was deleted.

Source/Porticle.Grpc.GuidMapper/Porticle.Grpc.GuidMapper.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<OutputType>Exe</OutputType>
54
<ImplicitUsings>enable</ImplicitUsings>
@@ -17,7 +16,7 @@
1716
<PackageReleaseNotes>First test version</PackageReleaseNotes>
1817
<IncludeBuildOutput>false</IncludeBuildOutput>
1918
<DevelopmentDependency>true</DevelopmentDependency>
20-
<Version>1.0.11</Version>
19+
<Version>1.0.13</Version>
2120
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
2221
<TargetFrameworks>net9.0;net8.0</TargetFrameworks>
2322
</PropertyGroup>

Source/Porticle.Grpc.GuidMapper/Program.cs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@
3030
var root = tree.GetRoot();
3131
File.WriteAllText(filePath + "_", root.ToFullString());
3232

33-
var propertyVisitor = new PropertyVisitor();
34-
root = propertyVisitor.Visit(root);
35-
36-
var methodVisitor = new MethodVisitor(propertyVisitor.ReplaceProps);
37-
root = methodVisitor.Visit(root);
38-
39-
// das ganze noch für GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
40-
var options = new CSharpParseOptions();
41-
options = options.WithPreprocessorSymbols("GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE");
42-
root = CSharpSyntaxTree.ParseText(root.ToFullString(), options).GetRoot();
43-
root = methodVisitor.Visit(root);
33+
var classVisitor = new ClassVisitor();
34+
root = classVisitor.Visit(root);
35+
36+
37+
// // das ganze noch für GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
38+
// var options = new CSharpParseOptions();
39+
// options = options.WithPreprocessorSymbols("GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE");
40+
// root = CSharpSyntaxTree.ParseText(root.ToFullString(), options).GetRoot();
41+
// root = methodVisitor.Visit(root);
4442

4543
File.WriteAllText(filePath, root.ToFullString());
4644
Console.WriteLine("Post-processing complete.");

0 commit comments

Comments
 (0)