void Decompile(ModuleDef module, BamlDocument document, IDecompiler lang,
			IDecompilerOutput output, CancellationToken token) {
			var decompiler = new XamlDecompiler();
			var xaml = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);
			var xamlText = new XamlOutputCreator(xamlOutputOptionsProvider.Default).CreateText(xaml);
			documentWriterService.Write(output, xamlText, ContentTypes.Xaml);
		}
Example #2
0
        void Decompile(ModuleDef module, BamlDocument document, ILanguage lang,
                       IDecompilerOutput output, CancellationToken token)
        {
            var decompiler = new XamlDecompiler();
            var xaml       = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);

            output.Write(xaml.ToString(), BoxedTextColor.Text);
        }
Example #3
0
		void Decompile(ModuleDef module, BamlDocument document, Language lang,
			ITextOutput output, out IHighlightingDefinition highlight, CancellationToken token) {
			var decompiler = new XamlDecompiler();
			var xaml = decompiler.Decompile(module, document, token);

			output.Write(xaml.ToString(), TextTokenType.Text);
			highlight = HighlightingManager.Instance.GetDefinitionByExtension(".xml");
		}
		void Decompile(ModuleDef module, BamlDocument document, ILanguage lang,
			ITextOutput output, out string ext, CancellationToken token) {
			var decompiler = new XamlDecompiler();
			var xaml = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);

			output.Write(xaml.ToString(), TextTokenKind.Text);
			ext = ".xml";
		}
Example #5
0
        void Decompile(ModuleDef module, BamlDocument document, IDecompiler lang,
                       IDecompilerOutput output, CancellationToken token)
        {
            var decompiler = new XamlDecompiler();
            var xaml       = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);
            var xamlText   = new XamlOutputCreator(xamlOutputOptionsProvider.Default).CreateText(xaml);

            documentWriterService.Write(output, xamlText, ContentTypes.Xaml);
        }
Example #6
0
        void Decompile(ModuleDef module, BamlDocument document, Language lang,
                       ITextOutput output, out IHighlightingDefinition highlight, CancellationToken token)
        {
            var decompiler = new XamlDecompiler();
            var xaml       = decompiler.Decompile(module, document, token);

            output.Write(xaml.ToString(), TextTokenType.Text);
            highlight = HighlightingManager.Instance.GetDefinitionByExtension(".xml");
        }
Example #7
0
        void Decompile(ModuleDef module, BamlDocument document, ILanguage lang,
                       ITextOutput output, out string ext, CancellationToken token)
        {
            var decompiler = new XamlDecompiler();
            var xaml       = decompiler.Decompile(module, document, token, BamlDecompilerOptions.Create(lang), null);

            output.Write(xaml.ToString(), TextTokenKind.Text);
            ext = ".xml";
        }