Skip to content

Commit

Permalink
Merge pull request RobinKa#72 from RobinKa/feature/vsix
Browse files Browse the repository at this point in the history
Visual Studio extension for NetPrints editor
  • Loading branch information
RobinKa authored May 5, 2019
2 parents 308bab4 + 17d3749 commit 389977c
Show file tree
Hide file tree
Showing 50 changed files with 1,993 additions and 821 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ mono: none
script:
- choco install dotnetcore-sdk --pre
- dotnet --version
- dotnet build NetPrints.sln -c Release
# - dotnet build NetPrints.sln -c Release
- dotnet test
8 changes: 7 additions & 1 deletion NetPrints.sln
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
CSharpRuleSet.ruleset = CSharpRuleSet.ruleset
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetPrintsCLI", "NetPrintsCLI\NetPrintsCLI.csproj", "{141EFA2F-E182-4767-8641-27840507EF8A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetPrintsCLI", "NetPrintsCLI\NetPrintsCLI.csproj", "{141EFA2F-E182-4767-8641-27840507EF8A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NetPrintsVSIX", "NetPrintsVSIX\NetPrintsVSIX.csproj", "{F67E1137-28AA-44BD-A173-ECE01D50DC44}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -44,6 +46,10 @@ Global
{141EFA2F-E182-4767-8641-27840507EF8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{141EFA2F-E182-4767-8641-27840507EF8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{141EFA2F-E182-4767-8641-27840507EF8A}.Release|Any CPU.Build.0 = Release|Any CPU
{F67E1137-28AA-44BD-A173-ECE01D50DC44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F67E1137-28AA-44BD-A173-ECE01D50DC44}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F67E1137-28AA-44BD-A173-ECE01D50DC44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F67E1137-28AA-44BD-A173-ECE01D50DC44}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
68 changes: 0 additions & 68 deletions NetPrints/Compatibility/ClassGraph.cs

This file was deleted.

35 changes: 0 additions & 35 deletions NetPrints/Compatibility/ConstructorSpecifier.cs

This file was deleted.

33 changes: 0 additions & 33 deletions NetPrints/Compatibility/MethodGraph.cs

This file was deleted.

41 changes: 0 additions & 41 deletions NetPrints/Compatibility/MethodSpecifier.cs

This file was deleted.

94 changes: 0 additions & 94 deletions NetPrints/Compatibility/Variable.cs

This file was deleted.

48 changes: 0 additions & 48 deletions NetPrints/Compatibility/VariableNode.cs

This file was deleted.

5 changes: 5 additions & 0 deletions NetPrints/Core/ClassGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,10 @@ public TypeSpecifier Type
get => new TypeSpecifier(FullName, SuperType.IsEnum, SuperType.IsInterface,
DeclaredGenericArguments.Cast<BaseType>().ToList());
}

public ClassGraph()
{
_ = new ClassReturnNode(this);
}
}
}
3 changes: 0 additions & 3 deletions NetPrints/Core/MethodGraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ public MethodGraph(string name)
[OnDeserialized]
private void OnDeserialized(StreamingContext context)
{
// Compatibility
FixVisibility(context);

// Call Node.OnMethodDeserialized until the types don't change anymore
// or a max iteration was reached.
// TODO: Sort nodes by depth and propagate in order instead of
Expand Down
2 changes: 1 addition & 1 deletion NetPrints/Core/NetPrintsUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static bool IsVisible(TypeSpecifier fromType, TypeSpecifier type, MemberV
}
else if (isSubclassOf(fromType, type))
{
return visibility.HasFlag(MemberVisibility.ProtectedOrPublic);
return visibility.HasFlag(MemberVisibility.Protected) || visibility.HasFlag(MemberVisibility.Public);
}

return visibility.HasFlag(MemberVisibility.Public);
Expand Down
Loading

0 comments on commit 389977c

Please sign in to comment.