Exemple #1
0
        public static void Reset(bool full_flag)
        {
            CSharpParser.yacc_verbose_flag = 0;
            Location.Reset();

            if (!full_flag)
            {
                return;
            }

            RootContext.Reset(full_flag);
            TypeManager.Reset();
            ReferenceContainer.Reset();
            PointerContainer.Reset();
            Parameter.Reset();

            Unary.Reset();
            UnaryMutator.Reset();
            Binary.Reset();
            ConstantFold.Reset();
            CastFromDecimal.Reset();
            StringConcat.Reset();

            NamespaceEntry.Reset();
            Attribute.Reset();
            AnonymousTypeClass.Reset();
            AnonymousMethodBody.Reset();
            AnonymousMethodStorey.Reset();
            SymbolWriter.Reset();
            Switch.Reset();
            Linq.QueryBlock.TransparentParameter.Reset();
            Convert.Reset();
            TypeInfo.Reset();
        }
Exemple #2
0
        public FixedFieldSpec(ModuleContainer module, TypeSpec declaringType, IMemberDefinition definition, FieldInfo info, FieldSpec element, Modifiers modifiers)
            : base(declaringType, definition, PointerContainer.MakeType(module, element.MemberType), info, modifiers)
        {
            this.element = element;

            // It's never CLS-Compliant
            state &= ~StateFlags.CLSCompliant_Undetected;
        }
Exemple #3
0
        public static PointerContainer MakeType(TypeSpec element)
        {
            PointerContainer pc;

            if (!instances.TryGetValue(element, out pc))
            {
                pc = new PointerContainer(element);
                instances.Add(element, pc);
            }

            return(pc);
        }