Exemplo n.º 1
0
 public void CollapseNamedTypes(NativeSymbol ns)
 {
     foreach (NativeSymbolRelationship rel in _it.FindAllNativeSymbolRelationships(ns))
     {
         CollapseNamedTypesImpl(rel.Parent, rel.Symbol);
     }
 }
Exemplo n.º 2
0
        public void FindAllRelationships1()
        {
            NativeBuiltinType               ns   = new NativeBuiltinType(BuiltinType.NativeByte);
            NativeSymbolIterator            it   = new NativeSymbolIterator();
            List <NativeSymbolRelationship> list = it.FindAllNativeSymbolRelationships(ns);

            Assert.Equal(1, list.Count);
            EnsureIsSymbol(ns, list);
        }
Exemplo n.º 3
0
        public void FindAllRelationships2()
        {
            NativeBuiltinType               child = new NativeBuiltinType(BuiltinType.NativeByte);
            NativePointer                   par   = new NativePointer(child);
            NativeSymbolIterator            it    = new NativeSymbolIterator();
            List <NativeSymbolRelationship> list  = it.FindAllNativeSymbolRelationships(par);

            Assert.Equal(2, list.Count);
            EnsureIsSymbol(par, list);
            EnsureIsSymbol(child, list);
            EnsureIsParent(par, list);
        }
Exemplo n.º 4
0
        public void FindAllRelationships3()
        {
            NativePointer ptr1 = new NativePointer();
            NativePointer ptr2 = new NativePointer(ptr1);

            ptr1.RealType = ptr2;

            NativeSymbolIterator            it   = new NativeSymbolIterator();
            List <NativeSymbolRelationship> list = it.FindAllNativeSymbolRelationships(ptr1);

            EnsureIsSymbol(ptr1, list);
            EnsureIsSymbol(ptr2, list);
        }