Browse Source

Extracted QualifiedNameSeparator from GetQualifiedName.

pull/696/head
Joao Matos 10 years ago
parent
commit
77b6eef89d
  1. 6
      src/AST/Declaration.cs

6
src/AST/Declaration.cs

@ -116,6 +116,8 @@ namespace CppSharp.AST
get { return OriginalName; } get { return OriginalName; }
} }
public static string QualifiedNameSeparator = "::";
public string GetQualifiedName(Func<Declaration, string> getName, public string GetQualifiedName(Func<Declaration, string> getName,
Func<Declaration, DeclarationContext> getNamespace) Func<Declaration, DeclarationContext> getNamespace)
{ {
@ -132,10 +134,10 @@ namespace CppSharp.AST
names.Add(getName(this)); names.Add(getName(this));
names = names.Where(s => !string.IsNullOrWhiteSpace(s)).ToList(); names = names.Where(s => !string.IsNullOrWhiteSpace(s)).ToList();
return string.Join("::", names); return string.Join(QualifiedNameSeparator, names);
} }
private List<Declaration> GatherNamespaces(DeclarationContext @namespace) private static List<Declaration> GatherNamespaces(DeclarationContext @namespace)
{ {
var namespaces = new List<Declaration>(); var namespaces = new List<Declaration>();

Loading…
Cancel
Save