public override void Visit(EntityScopeData inScope, TableLineRef inSourceRef) { inSourceRef = inSourceRef.WithDescriptor("EntityScopeData"); switch (inScope.Type) { case EntityScopeType.ObjectById: { if (inScope.IdArg == m_EntityId) { AddRef(inSourceRef); } break; } case EntityScopeType.Invalid: { if (m_EntityId == RSEntityId.Invalid) { AddRef(inSourceRef); } break; } case EntityScopeType.Null: { if (m_EntityId == RSEntityId.Null) { AddRef(inSourceRef); } break; } } }
protected void AddRef(TableLineRef inRef, string inDescriptor) { AddRef(inRef.WithDescriptor(inDescriptor)); }