xoofx/CppAst.NET

Issue parsing a class field which its type is a template class

yossik1977 opened this issue · 0 comments

Hi,
Consider the following code:
class TemplateTesterClass
{
public:
TestTemplate a;
TestNamespace::TestTemplate2 b;
};

Field 'a' is parsed correctly, its type is fully available by using the Type.GetDisplayName() I get "TestTemplate", from which I can extract the "int".
However in field 'b' the parser reacts differently and I get only "TestTemplate2" from the parser by using the Type.GetDisplayName().
The difference is TestTemplate2 is in a namespace named "TestNamespace".

The problem is the type "int" for field 'b' is not available from the parser.