public void UpdateSettingsForActiveModule()
 {
     this.Parameters.Strict = Pragmas.IsEnabledOn(this.ActiveModule, "strict");
     this._implicit         = Pragmas.IsEnabledOn(this.ActiveModule, "implicit");
     My <UnityDowncastPermissions> .Instance.Enabled = Pragmas.IsEnabledOn(this.ActiveModule, "downcast");
     if (this.ShouldDisableImplicitDowncastWarning())
     {
         this.Parameters.DisableWarning(this.ImplicitDowncast);
     }
     else
     {
         this.Parameters.EnableWarning(this.ImplicitDowncast);
     }
 }
Пример #2
0
        public override void OnModule(Module module)
        {
            if (!this.UnityScriptParameters.Expando)
            {
            }
            this._expando = Pragmas.IsEnabledOn(module, "expando");
            bool strict = this.Parameters.Strict;

            try
            {
                this.Parameters.Strict = Pragmas.IsEnabledOn(module, "strict");
                base.OnModule(module);
            }
            finally
            {
                this.Parameters.Strict = strict;
            }
        }