Mono.CSharp.CompilerCallableEntryPoint.Reset C# (CSharp) Method

Reset() public static method

public static Reset ( bool full_flag ) : void
full_flag bool
return void
		public static void Reset (bool full_flag)
		{
			CSharpParser.yacc_verbose_flag = 0;
			Location.Reset ();
			
			if (!full_flag)
				return;

			RootContext.Reset (full_flag);
			TypeManager.Reset ();
			ArrayContainer.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 ();
		}
	}

Same methods

CompilerCallableEntryPoint::Reset ( ) : void

Usage Example

示例#1
0
        /// <summary>
        ///   Optional initialization for the Evaluator.
        /// </summary>
        /// <remarks>
        ///  Initializes the Evaluator with the command line
        ///  options that would be processed by the command
        ///  line compiler.  Only the first call to
        ///  InitAndGetStartupFiles or Init will work, any future
        ///  invocations are ignored.
        ///
        ///  You can safely avoid calling this method if your application
        ///  does not need any of the features exposed by the command line
        ///  interface.
        ///
        ///  This method return an array of strings that contains any
        ///  files that were specified in `args'.
        /// </remarks>
        public static string [] InitAndGetStartupFiles(string [] args)
        {
            lock (evaluator_lock){
                if (inited)
                {
                    return(new string [0]);
                }

                driver = Driver.Create(args, false, new ConsoleReportPrinter());
                if (driver == null)
                {
                    throw new Exception("Failed to create compiler driver with the given arguments");
                }

                RootContext.ToplevelTypes = new ModuleContainer(ctx, true);

                driver.ProcessDefaultConfig();

                ArrayList startup_files = new ArrayList();
                foreach (CompilationUnit file in Location.SourceFiles)
                {
                    startup_files.Add(file.Path);
                }

                CompilerCallableEntryPoint.Reset();
                RootContext.ToplevelTypes = new ModuleContainer(ctx, true);

                driver.LoadReferences();
                RootContext.EvalMode = true;
                inited = true;

                return((string [])startup_files.ToArray(typeof(string)));
            }
        }
All Usage Examples Of Mono.CSharp.CompilerCallableEntryPoint::Reset
CompilerCallableEntryPoint