protected override void FreezeInternal()
 {
     conditionalSymbols       = FreezableHelper.FreezeList(conditionalSymbols);
     specificWarningsAsErrors = FreezableHelper.FreezeList(specificWarningsAsErrors);
     disabledWarnings         = FreezableHelper.FreezeList(disabledWarnings);
     base.FreezeInternal();
 }
Example #2
0
 protected override void FreezeInternal()
 {
     base.FreezeInternal();
     baseTypes      = FreezableHelper.FreezeList(baseTypes);
     typeParameters = FreezableHelper.FreezeListAndElements(typeParameters);
     nestedTypes    = FreezableHelper.FreezeListAndElements(nestedTypes);
     members        = FreezableHelper.FreezeListAndElements(members);
 }
Example #3
0
        protected override void FreezeInternal()
        {
            usings        = FreezableHelper.FreezeList(usings);
            usingAliases  = FreezableHelper.FreezeList(usingAliases);
            externAliases = FreezableHelper.FreezeList(externAliases);

            // In current model (no child scopes), it makes sense to freeze the parent as well
            // to ensure the whole lookup chain is immutable.
            if (parent != null)
            {
                parent.Freeze();
            }

            base.FreezeInternal();
        }
Example #4
0
 protected override void FreezeInternal()
 {
     base.FreezeInternal();
     interfaceImplementations = FreezableHelper.FreezeList(interfaceImplementations);
 }