InitDecl - XcodeExtKit/XcodeExtBase GitHub Wiki
InitDecl
init?(_ str1: Str?, _ str2: Str?) {}
public struct InitDecl: SwiftT
Inheritance
SwiftT
Initializers
init(_:statements:)
init(_ interface: InitInterface, statements: [Str] = [])
init(name:statements:args:optional:_:)
init(name: Str, statements: [Str], args: [FuncArg] = [], optional: Bool = false, _ access: AccessMod? = nil)
Properties
interface
var interface: InitInterface
statements
body
var statements: [Str]
args
var args: [FuncArg]
optional
var optional: Bool
access
var access: AccessMod?
Methods
str(tabIndent:usesTabs:)
init?(_ str1: Str?, _ str2: Str?) { self.a = a }
func str(tabIndent: Int, usesTabs: Bool) -> Str
makeInitBody(_:tabIndent:usesTabs:)
"{ self.a = a \n self.b = b \n }"
func makeInitBody(_ args: [Arg], tabIndent: Int, usesTabs: Bool) -> Str
makeInitBody(_:tabIndent:usesTabs:)
func makeInitBody(_ args: [FuncArg], tabIndent: Int, usesTabs: Bool) -> Str