add current base type to traversal upon finding decl