Skip to content

Commit

Permalink
fixes after building babulon c# port
Browse files Browse the repository at this point in the history
  • Loading branch information
ASDAlexander77 committed Jun 11, 2017
1 parent 9e80b7b commit e1b53e2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion Il2Native.Logic/DOM2/Call.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ internal override void WriteTo(CCodeWriterBase c)
else
{
c.WriteNamespace(this.Method.ContainingType, containingNamespace: MethodOwner?.ContainingNamespace);
c.TextSpan("::");
}

c.WriteMethodName(this.Method, addTemplate: true, containingNamespace: MethodOwner?.ContainingNamespace);
Expand Down
7 changes: 7 additions & 0 deletions Il2Native.Logic/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,13 @@ public static bool StartsWith(this INamespaceSymbol namespaceSymbol, INamespaceS
return false;
}

if (namespaceSymbol.ContainingAssembly != null
&& otherNamespaceSymbol.ContainingAssembly != null
&& namespaceSymbol.ContainingAssembly.Name.CompareTo(otherNamespaceSymbol.ContainingAssembly.Name) != 0)
{
return false;
}

var notGlobalNamespace = true;
var parts = namespaceSymbol.EnumNamespaces().GetEnumerator();
var partsOther = otherNamespaceSymbol.EnumNamespaces().GetEnumerator();
Expand Down

0 comments on commit e1b53e2

Please sign in to comment.