Skip to content

Commit

Permalink
removed core library compatibility code
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinKa committed May 5, 2019
1 parent 6cd246b commit 247a69c
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 323 deletions.
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 NetPrintsEditor/Reflection/ReflectionProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private static SyntaxTree ParseSyntaxTree(string source)
// at the time of writing. However MaxValue - 1 (as defined in the newer versions
// see https://github.com/dotnet/roslyn/blob/472276accaf70a8356747dc7111cfb6231871077/src/Compilers/CSharp/Portable/LanguageVersion.cs#L135
// seems to work.
LanguageVersion previewVersion = (LanguageVersion)(int.MaxValue - 1);
const LanguageVersion previewVersion = (LanguageVersion)(int.MaxValue - 1);

// Return a syntax tree of our source code
return CSharpSyntaxTree.ParseText(source, new CSharpParseOptions(languageVersion: previewVersion));
Expand Down

0 comments on commit 247a69c

Please sign in to comment.