Esempio n. 1
0
 public void add(TypeDef t)
 {
     types.add(t);
 }
Esempio n. 2
0
 public EventRef(EventReference eventReference, TypeDef owner, int index)
     : base(eventReference, owner, index)
 {
 }
Esempio n. 3
0
 public PropertyRef(PropertyReference propertyReference, TypeDef owner, int index)
     : base(propertyReference, owner, index)
 {
 }
Esempio n. 4
0
 public Ref(MemberReference mr, TypeDef owner, int index)
 {
     MemberReference = mr;
     NewName = OldName = mr.Name;
     OldFullName = mr.FullName;
     Owner = owner;
     Index = index;
 }
Esempio n. 5
0
 public PropertyDef(PropertyDefinition propertyDefinition, TypeDef owner, int index)
     : base(propertyDefinition, owner, index)
 {
 }
Esempio n. 6
0
 public EventDef(EventDefinition eventDefinition, TypeDef owner, int index)
     : base(eventDefinition, owner, index)
 {
 }
Esempio n. 7
0
 public MethodDef(MethodDefinition methodDefinition, TypeDef owner, int index)
     : base(methodDefinition, owner, index)
 {
     genericParams = createGenericParamDefList(MethodDefinition.GenericParameters);
 }
Esempio n. 8
0
 public MethodRef(MethodReference methodReference, TypeDef owner, int index)
     : base(methodReference, owner, index)
 {
     if (methodReference.HasParameters) {
         for (int i = 0; i < methodReference.Parameters.Count; i++) {
             var param = methodReference.Parameters[i];
             paramDefs.Add(new ParamDef(param, i));
         }
     }
 }
Esempio n. 9
0
 public FieldDef(FieldDefinition fieldDefinition, TypeDef owner, int index)
     : base(fieldDefinition, owner, index)
 {
 }
Esempio n. 10
0
 public TypeInfo(TypeReference typeReference, TypeDef typeDef)
 {
     this.typeReference = typeReference;
     this.typeDef = typeDef;
 }
Esempio n. 11
0
 public InterfaceScopeInfo(TypeDef theClass, List<TypeDef> interfaces)
 {
     this.theClass = theClass;
     this.interfaces = interfaces;
 }
Esempio n. 12
0
 public void addClass(TypeDef cls)
 {
     classes[cls] = true;
 }
Esempio n. 13
0
 void fixClsTypeNames(TypeDef nesting, TypeDef nested)
 {
     int nestingCount = nesting == null ? 0 : nesting.GenericParams.Count;
     int arity = nested.GenericParams.Count - nestingCount;
     if (nested.gotNewName() && arity > 0)
         nested.NewName += "`" + arity;
     foreach (var nestedType in nested.NestedTypes)
         fixClsTypeNames(nested, nestedType);
 }