Ejemplo n.º 1
0
        /// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType);

            declaringType.Add(type);
            return(type);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType, string fullScopeId)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType, fullScopeId);
            if(declaringType != null)
                declaringType.Add(type);

            module.Register(type);
            return type;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create a synthetic field and add it to the given declaring type.
        /// </summary>
        public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType, string fullScopeId)
        {
            var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType, fullScopeId);

            if (declaringType != null)
            {
                declaringType.Add(type);
            }

            module.Register(type);
            return(type);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a synthetic field and add it to the given declaring type.
 /// </summary>
 public static XSyntheticTypeDefinition Create(XModule module, XTypeDefinition declaringType, XSyntheticTypeFlags flags, string @namespace, string name, XTypeReference baseType)
 {
     var type = new XSyntheticTypeDefinition(module, declaringType, flags, @namespace, name, baseType);
     declaringType.Add(type);
     return type;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nestedTypes.Add(nestedType);
     Reset();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal abstract void Add(XSyntheticTypeDefinition nestedType);
Ejemplo n.º 7
0
 /// <summary>
 /// Add the given generated nestedt type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nestedTypes.Add(nestedType);
     Reset();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Add the given generated nested type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Add the given generated nested type to this type.
 /// </summary>
 internal override void Add(XSyntheticTypeDefinition nestedType)
 {
     nested.Add(nestedType);
     addedNestedTypesCount++;
 }