예제 #1
0
 private void GenerateScriptCore(TextWriter writer) {
     ScriptGenerator scriptGenerator = new ScriptGenerator(writer, _options, this);
     scriptGenerator.GenerateScript(_symbols);
 }
예제 #2
0
        private string GenerateScriptCore()
        {
            StringWriter scriptWriter = new StringWriter();

            try {
                ScriptGenerator scriptGenerator = new ScriptGenerator(scriptWriter, _options, _symbols);
                scriptGenerator.GenerateScript(_symbols);
            }
            catch (Exception e) {
                Debug.Fail(e.ToString());
            }
            finally {
                scriptWriter.Flush();
            }

            return scriptWriter.ToString();
        }