CSharpCodeVisitor Class¶
- Namespace
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors
- Assemblies
- Microsoft.AspNetCore.Razor
Inheritance Hierarchy¶
System.Object
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.ChunkVisitor{Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter}
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CodeVisitor{Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter}
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpCodeVisitor
Syntax¶
public class CSharpCodeVisitor : CodeVisitor<CSharpCodeWriter>, IChunkVisitor
-
class
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.
CSharpCodeVisitor
Constructors¶
-
CSharpCodeVisitor
(Microsoft.AspNetCore.Razor.CodeGenerators.CSharpCodeWriter, Microsoft.AspNetCore.Razor.CodeGenerators.CodeGeneratorContext)¶ public CSharpCodeVisitor(CSharpCodeWriter writer, CodeGeneratorContext context)
-
Methods¶
-
CreateCodeMapping
(System.String, System.String, Microsoft.AspNetCore.Razor.Chunks.Chunk)¶ public void CreateCodeMapping(string padding, string code, Chunk chunk)
-
CreateExpressionCodeMapping
(System.String, Microsoft.AspNetCore.Razor.Chunks.Chunk)¶ public void CreateExpressionCodeMapping(string code, Chunk chunk)
-
CreateRawCodeMapping
(System.String, Microsoft.AspNetCore.Razor.SourceLocation)¶ public void CreateRawCodeMapping(string code, SourceLocation documentLocation)
-
CreateStatementCodeMapping
(System.String, Microsoft.AspNetCore.Razor.Chunks.Chunk)¶ public void CreateStatementCodeMapping(string code, Chunk chunk)
-
RenderDesignTimeExpressionBlockChunk
(Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk)¶ public void RenderDesignTimeExpressionBlockChunk(ExpressionBlockChunk chunk)
-
RenderRuntimeExpressionBlockChunk
(Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk)¶ public void RenderRuntimeExpressionBlockChunk(ExpressionBlockChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.CodeAttributeChunk)¶ protected override void Visit(CodeAttributeChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.DynamicCodeAttributeChunk) protected override void Visit(DynamicCodeAttributeChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.ExpressionBlockChunk) protected override void Visit(ExpressionBlockChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.ExpressionChunk) protected override void Visit(ExpressionChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.LiteralChunk) protected override void Visit(LiteralChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.LiteralCodeAttributeChunk) protected override void Visit(LiteralCodeAttributeChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.ParentChunk) protected override void Visit(ParentChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.ParentLiteralChunk) protected override void Visit(ParentLiteralChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.SectionChunk) protected override void Visit(SectionChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.StatementChunk) protected override void Visit(StatementChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.TagHelperChunk) protected override void Visit(TagHelperChunk chunk)
-
Visit
(Microsoft.AspNetCore.Razor.Chunks.TemplateChunk) protected override void Visit(TemplateChunk chunk)
-
Properties¶
-
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpCodeVisitor.
TagHelperRenderer
¶ Return type: Microsoft.AspNetCore.Razor.CodeGenerators.CSharpTagHelperCodeRenderer public CSharpTagHelperCodeRenderer TagHelperRenderer { get; set; }
-
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpCodeVisitor.
WriteAttributeValueMethodName
¶ Gets the method name used to generate <code>WriteAttribute</code> invocations in the rendered page.
Return type: System.String protected virtual string WriteAttributeValueMethodName { get; }
-
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpCodeVisitor.
WriteMethodName
¶ Method used to write an
System.Object
to the current output.Return type: System.String protected virtual string WriteMethodName { get; }
-
Microsoft.AspNetCore.Razor.CodeGenerators.Visitors.CSharpCodeVisitor.
WriteToMethodName
¶ Method used to write an
System.Object
to a specifiedSystem.IO.TextWriter
.Return type: System.String protected virtual string WriteToMethodName { get; }
-