ICodeOutput

Description

interface Tinman.Core.Parsing.ICodeOutput

Extended by

ApiEntry sealed
ConfigNode abstract
ConfigValue abstract
CxNode abstract
DirectX11ShaderInfo sealed
DirectX12ShaderInfo sealed
DirectX9ShaderInfo sealed
IDocumentNode
IJsonValue
TinmanError sealed
XmlNode abstract

Base interface for classes that produce source code.

Public / Methods

Write​Source​Code


public method WriteSourceCode → (2)

writer in : SourceCodeWriter

[not-null]
The source code writer to use.

context in : Context

[not-null]
Context information.

Produces source code by feeding the given source code writer.

IOException

If an I/O error occurs while emitting source code to writer in.

Extensions

To​Source​Code

2 overloads


public static method ToSourceCode1 → (3)

autoBreakColumns opt : int32 = 100

See SourceCodeWriter.AutoBreakColumns.

indentToken opt : string = "  "

See SourceCodeWriter.IndentToken.

newlineToken opt : LineEnding = LineEnding.Native

The string token that represents a line break.

returns → string

The source code.

Generates source code for this object.


public static method ToSourceCode2 → (4)

context in : Context

The context object to use or null.

autoBreakColumns opt : int32 = 100

See SourceCodeWriter.AutoBreakColumns.

indentToken opt : string = "  "

See SourceCodeWriter.IndentToken.

newlineToken opt : LineEnding = LineEnding.Native

The string token that represents a line break.

returns → string

The source code.

Generates source code for this object.