Exemplo n.º 1
0
 private void Test(string input, string output, int maxExpand = 0xFFFF, bool suppressWarnings = false)
 {
     _sink.MinSeverity = suppressWarnings ? Severity.DebugDetail : Severity.ErrorDetail;
     using (LNode.SetPrinter(EcsLanguageService.Value))
         using (ParsingService.SetDefault(Les2LanguageService.Value))
             TestCompiler.Test(input, output, _sink, maxExpand, "LeMP.Prelude.Les");
 }
Exemplo n.º 2
0
        //int _alternator;

        public void Test(string input, string output, int maxExpand = 0xFFFF, ILNodePrinter printer = null)
        {
            using (LNode.SetPrinter(printer ?? EcsLanguageService.Value))
                using (ParsingService.SetDefault(Les3LanguageService.Value))
                    TestCompiler.Test(input, output, _sink, maxExpand, "LeMP.les3.to.ecs");
            // LeMP.Prelude.Les3 is set up as an alias; both namespaces should work,
            // but we're not using this logic as of 2021/01 because we don't have a
            // way to turn off annoying deprecation warnings
            //(++_alternator & 1) != 0 ? "LeMP.les3.to.ecs" : "LeMP.Prelude.Les3");
        }
Exemplo n.º 3
0
 private void Test(string input, string output, int maxExpand = 0xFFFF)
 {
     TestCompiler.Test(input, output, _sink, maxExpand, false);
 }