Browse Source

Maintain DeclarationsList integrity by clearing item offsets.

pull/1581/head
Joao Matos 4 years ago
parent
commit
892c4b1f64
  1. 5
      src/AST/DeclarationsList.cs

5
src/AST/DeclarationsList.cs

@ -66,6 +66,11 @@ namespace CppSharp.AST @@ -66,6 +66,11 @@ namespace CppSharp.AST
}
}
protected override void ClearItems()
{
base.ClearItems();
offsets.Clear();
}
private IEnumerable<T> OfType<T>(Kind kind) where T : Declaration
{

Loading…
Cancel
Save