Liking cljdoc? Tell your friends :D

dots.typescript.printer


(print-bundle printer bundle)

Prints a bundle of source files as-is, without any emit transformations.

Parameters:

  • bundle: Bundle

Returns: string

Prints a bundle of source files as-is, without any emit transformations.

**Parameters:**
- `bundle`: `Bundle`

**Returns:** `string`
sourceraw docstring

(print-file printer source-file)

Prints a source file as-is, without any emit transformations.

Parameters:

  • source-file: SourceFile

Returns: string

Prints a source file as-is, without any emit transformations.

**Parameters:**
- `source-file`: `SourceFile`

**Returns:** `string`
sourceraw docstring

(print-list printer format list source-file)

Prints a list of nodes using the given format flags

Parameters:

  • format: ListFormat
  • list: NodeArray<T>
  • source-file: SourceFile

Returns: string

Prints a list of nodes using the given format flags

**Parameters:**
- `format`: `ListFormat`
- `list`: `NodeArray<T>`
- `source-file`: `SourceFile`

**Returns:** `string`
sourceraw docstring

(print-node printer hint node source-file)

Print a node and its subtree as-is, without any emit transformations.

Parameters:

  • hint: EmitHint - A value indicating the purpose of a node. This is primarily used to distinguish between an Identifier used in an expression position, versus an Identifier used as an IdentifierName as part of a declaration. For most nodes you should just pass Unspecified.
  • node: Node - The node to print. The node and its subtree are printed as-is, without any emit transformations.
  • source-file: SourceFile - A source file that provides context for the node. The source text of the file is used to emit the original source content for literals and identifiers, while the identifiers of the source file are used when generating unique names to avoid collisions.

Returns: string

Print a node and its subtree as-is, without any emit transformations.

**Parameters:**
- `hint`: `EmitHint` - A value indicating the purpose of a node. This is primarily used to
distinguish between an `Identifier` used in an expression position, versus an
`Identifier` used as an `IdentifierName` as part of a declaration. For most nodes you
should just pass `Unspecified`.
- `node`: `Node` - The node to print. The node and its subtree are printed as-is, without any
emit transformations.
- `source-file`: `SourceFile` - A source file that provides context for the node. The source text of
the file is used to emit the original source content for literals and identifiers, while
the identifiers of the source file are used when generating unique names to avoid
collisions.

**Returns:** `string`
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close