FuncDecl - XcodeExtKit/XcodeExtBase GitHub Wiki

FuncDecl

func print(_ str1:​ Str?, _ str2:​ Str?) -> Str? { ... }

public struct FuncDecl: SwiftP, CanBeStaticP

Inheritance

CanBeStaticP, SwiftP

Initializers

init(_:_:)

init(_ interface: FuncInterface, _ statements: [Str] = [])

init(name:statements:args:returnType:_static:_:)

init(name: Str, statements: [Str], args: [FuncArg] = [], returnType: TypeName? = nil, _static: Bool = false, _ access: AccessMod? = nil)

Properties

interface

var interface: FuncInterface

statements

body

var statements: [Str]

_static

var _static: Bool

name

var name: Str

args

var args: [FuncArg]

returnType

var returnType: TypeName?

access

var access: AccessMod?

Methods

str(usesTabs:tabIndent:)

func print(_ str1:​ Str?, _ str2:​ Str?) -> Str? { ... }

func str(usesTabs: Bool = false, tabIndent: Int = 4) -> Str