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
val firstChild: Node
Link copied to clipboard
val lastChild: Node
Link copied to clipboard
val next: Node
Link copied to clipboard
var parent: Node
Link copied to clipboard
Link copied to clipboard
var sourceSpans: MutableList<SourceSpan>

Functions

Link copied to clipboard
open override fun accept(p0: Visitor)
Link copied to clipboard
open fun addSourceSpan(p0: SourceSpan)
Link copied to clipboard
open fun appendChild(p0: Node)
Link copied to clipboard
fun Node.children(): Sequence<Node>
Link copied to clipboard
open fun getPrevious(): Node
Link copied to clipboard
open fun insertAfter(p0: Node)
Link copied to clipboard
open fun insertBefore(p0: Node)
Link copied to clipboard
open fun prependChild(p0: 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 override fun toString(): String
Link copied to clipboard
open fun unlink()