Permalink
Browse files

Removed unused kinds of function synthesis.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Jun 3, 2017
1 parent b77de1a commit 1895ae3b94e795903da7e5fd034c72d6c2f62741
Showing with 3 additions and 6 deletions.
  1. +1 −3 src/AST/Function.cs
  2. +1 −2 src/Generator/Generators/CSharp/CSharpSources.cs
  3. +1 −1 src/Generator/Passes/RenamePass.cs
@@ -126,9 +126,7 @@ public enum FunctionSynthKind
ComplementOperator,
AbstractImplCall,
DefaultValueOverload,
InterfaceInstance,
AdjustedMethod,
FieldAcessor
InterfaceInstance
}
public enum FriendKind
@@ -475,8 +475,7 @@ public void GenerateClassInternals(Class @class)
{
Action<Method> tryAddOverload = method =>
{
if (method.IsSynthetized &&
method.SynthKind != FunctionSynthKind.AdjustedMethod)
if (method.IsSynthetized)
return;
if (method.IsProxy ||
@@ -166,7 +166,7 @@ private static bool AreThereConflicts(Declaration decl, string newName)
declarations.AddRange(decl.Namespace.Events);
var function = decl as Function;
if (function != null && function.SynthKind != FunctionSynthKind.AdjustedMethod)
if (function != null)
{
declarations.Add(function.Namespace);
// account for overloads

0 comments on commit 1895ae3

Please sign in to comment.