Skip to content

Commit

Permalink
Merge pull request #1378 from am11/master
Browse files Browse the repository at this point in the history
CodeGen: Entertain empty classes (#1377)
  • Loading branch information
madskristensen committed Aug 8, 2014
2 parents 3bee295 + a6be893 commit 7fd9055
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions EditorExtensions/Misc/CodeGeneration/IntellisenseParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ private static void ProcessClass(CodeClass cc, CodeClass baseClass, List<Intelli
foreach (CodeElement member in cc.Members)
{
if (ShouldProcess(member))
{
ProcessElement(member, list, underProcess);
}
}

if (baseClass != null)
Expand All @@ -152,20 +150,17 @@ private static void ProcessClass(CodeClass cc, CodeClass baseClass, List<Intelli
baseNs = GetNamespace(baseClass);
}

if (properties.Any())
var intellisenseObject = new IntellisenseObject(properties.ToList(), references)
{
var intellisenseObject = new IntellisenseObject(properties.ToList(), references)
{
Namespace = ns,
Name = className,
BaseNamespace = baseNs,
BaseName = baseClassName,
FullName = cc.FullName,
Summary = GetSummary(cc)
};
Namespace = ns,
Name = className,
BaseNamespace = baseNs,
BaseName = baseClassName,
FullName = cc.FullName,
Summary = GetSummary(cc)
};

list.Add(intellisenseObject);
}
list.Add(intellisenseObject);
}

private static IEnumerable<IntellisenseProperty> GetProperties(CodeElements props, HashSet<string> traversedTypes, HashSet<string> references = null)
Expand Down

0 comments on commit 7fd9055

Please sign in to comment.