Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What Does a Swift Data Type of "L" Stand For?

Within a prepareForSegue() function, I declared a constant as a ViewController type. When I access this constant, a value type with the character "L" appears next to it. I understand "M" stands for Method, "C" for class, and "V" stands variable, but what does this "L" stand for?

enter image description here

Aside: Not sure what "T" stands for either.

like image 229
10000RubyPools Avatar asked Sep 23 '15 03:09

10000RubyPools


1 Answers

This is the symbol for a local variable.

screenshot

You can see the differences in a playground:

Based on filenames alone, the other symbols are:

B — binding
T — builtin type, typedef
— category
C — class, or class template
CE — class extension
M — method, method template, instance method, member
V — class variable, global variable, instance variable
K — const, enum constant
E — enum
F — field
ƒ — function, function template
A — IBAction method
O — IBOutlet, IBOutletCollection
# — macro
C (brown) — modeled class
M (brown) — modeled method
P (brown) — modeled property
N — namespace
x — parameter
P — property
Pr — protocol
S — struct
U — union

like image 140
jtbandes Avatar answered Nov 16 '22 03:11

jtbandes