KobwebCall

class KobwebCall(val partiallyQualifiedName: String, var appendBrace: Boolean = false) : CustomNode(source)

A block which represents a method call to insert into the final output.

The original input may look something like {{{ .a.b.c.ExampleCall }}}

If no parentheses are added to the call, they will be appended automatically.

Parameters

partiallyQualifiedName

The semi-qualified name of this method. See toFqn for how it gets resolved.

appendBrace

If true, this call is meant to start a new block of indented code

Constructors

Link copied to clipboard
constructor(partiallyQualifiedName: String, appendBrace: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
open val firstChild: Node?
Link copied to clipboard
open val lastChild: Node?
Link copied to clipboard
open val next: Node?
Link copied to clipboard
open var parent: Node?
Link copied to clipboard
Link copied to clipboard
open val previous: Node?
Link copied to clipboard
open var sourceSpans: List<SourceSpan?>?

Functions

Link copied to clipboard
open fun accept(visitor: Visitor?)
Link copied to clipboard
open fun addSourceSpan(sourceSpan: SourceSpan?)
Link copied to clipboard
open fun appendChild(child: Node?)
Link copied to clipboard
fun Node.children(): Sequence<Node>
Link copied to clipboard
open fun insertAfter(sibling: Node?)
Link copied to clipboard
open fun insertBefore(sibling: Node?)
Link copied to clipboard
open fun prependChild(child: Node?)
Link copied to clipboard
fun toFqn(projectGroup: String): String

Convert this class's partiallyQualifiedName into a fully qualified name, prefixing it with the given projectGroup if it begins with a period.

Link copied to clipboard
open fun unlink()