Browse Source

Fixed triggering exception in declaration converting by handling the declaration first.

pull/155/merge
triton 12 years ago
parent
commit
11a0a51e00
  1. 2
      src/Core/Parser/ASTConverter.cs

2
src/Core/Parser/ASTConverter.cs

@ -716,8 +716,8 @@ namespace CppSharp @@ -716,8 +716,8 @@ namespace CppSharp
public override AST.Declaration VisitTypedef(TypedefDecl decl)
{
var _typedef = new AST.TypedefDecl();
_typedef.QualifiedType = typeConverter.VisitQualified(decl.QualifiedType);
VisitDeclaration(decl, _typedef);
_typedef.QualifiedType = typeConverter.VisitQualified(decl.QualifiedType);
return _typedef;
}

Loading…
Cancel
Save