finish moving all parsing to token scanner

This commit is contained in:
Eliot Jones
2018-01-20 00:49:53 +00:00
parent a0deab446b
commit c5e3ce7ec7
37 changed files with 422 additions and 447 deletions

View File

@@ -35,7 +35,19 @@
public bool TryGetOffset(IndirectReference reference, out long offset)
{
return offsets.TryGetValue(reference, out offset);
if (offsets.TryGetValue(reference, out offset))
{
return true;
}
var locations = searcher.GetObjectLocations();
if (locations.TryGetValue(reference, out offset))
{
return true;
}
return false;
}
public void UpdateOffset(IndirectReference reference, long offset)