public override void WriteJavascript(JavascriptTextWriter writer, CompilationUnitSyntax value, JsonSerializer serializer)
 {
     var syntaxWriter = new JavascriptSyntaxWriter(writer);
     {
         syntaxWriter.Visit(value);
     }
 }
Beispiel #2
0
        public void WriteTo(TextWriter writer, HtmlEncoder encoder)
        {
            var jsWriter = new JavascriptTextWriter(writer);

            foreach (var jsContent in ScriptContents)
            {
                jsContent.WriterTo(jsWriter);
            }
        }
Beispiel #3
0
 public JavascriptSyntaxWriter(JavascriptTextWriter writer)
 {
     Writer = writer;
 }
Beispiel #4
0
 public void WriterTo(JavascriptTextWriter writer)
 {
     _options.Serializer.Serialize(writer, Instance);
 }
Beispiel #5
0
 public abstract void WriteJavascript(JavascriptTextWriter writer, T value, JsonSerializer serializer);