Structure
SwiftSymbol
public struct SwiftSymbol
Relationships
Nested Types
SwiftSymbol.Contents
SwiftSymbol.Kind
Conforms To
CustomStringConvertible
Initializers
init(kind:children:contents:)
public init(kind: Kind, children: [SwiftSymbol] = [], contents: Contents = .none)
Properties
description
var description: String
Overridden method to allow simple printing with default options
kind
let kind: Kind
children
var children: [SwiftSymbol]
contents
let contents: Contents
Methods
print(using:)
public func print(using options: SymbolPrintOptions = .default) -> String
Prints SwiftSymbol
s to a String with the full set of printing options.
Parameters
Name | Type | Description |
---|---|---|
options | SymbolPrintOptions |
an option set containing the different |
Returns
self
printed to a string according to the specified options.