FunctionTypeSymbols
struct FunctionTypeSymbols : Codable, Equatable
A struct embedded inside a FormattingManagerService struct used as a nested layer within a model used to decode Formatting JSON data.
The struct models the JSON object mapped to the function_type_symbols key in the Formatting JSON data.
The parameters key string values are used to format the function type symbol of node types when displaying functionName messages in the console.
Note
The grouping of functions named in the enum is not intended to be an exhaustive list or the representation of an ideal demarcation.The purpose of differential formatting according to function group is as an additional visual aid that makes it easier to spot anomalies or unexpected routes in the control flow. It is also designed to help developers gain understanding of the functionality of unfamiliar code.
The struct uses a custom semantic naming system to name properties associated with key value pairs and their position in the JSON. This system was developed as an aid to correctly map each key to its position in the struct.
-
A string mapped to the
initialiserkey in the Formatting JSON data.Declaration
Swift
let kA: String -
A string mapped to the
custom_functionkey in the Formatting JSON data.Declaration
Swift
let kB: String -
A string mapped to the
system_method_overridekey in the Formatting JSON data.Declaration
Swift
let kC: String -
A string mapped to the
action_methodkey in the Formatting JSON data.Declaration
Swift
let kD: String -
A string mapped to the
delegate_methodkey in the Formatting JSON data.Declaration
Swift
let kE: String -
A string mapped to the
datasource_methodkey in the Formatting JSON data.Declaration
Swift
let kF: String -
A string mapped to the
computed_variablekey in the Formatting JSON data.Declaration
Swift
let kG: String -
A string mapped to the
protocol_extension_methodkey in the Formatting JSON data.Declaration
Swift
let kH: String
FunctionTypeSymbols Structure Reference