File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,7 @@ $(GNAME TraitsKeyword):
82
82
$(RELATIVE_LINK2 toType, $(D toType))
83
83
$(RELATIVE_LINK2 initSymbol, $(D initSymbol))
84
84
$(RELATIVE_LINK2 parameters, $(D parameters))
85
+ $(RELATIVE_LINK2 fullyQualifiedName, $(D fullyQualifiedName))
85
86
86
87
$(GNAME TraitsArguments):
87
88
$(GLINK TraitsArgument)
@@ -1156,6 +1157,22 @@ $(H3 $(GNAME parameters))
1156
1157
1157
1158
$(H2 $(LNAME2 symbols, Symbol Traits))
1158
1159
1160
+ $(H3 $(GNAME fullyQualifiedName))
1161
+
1162
+ $(P Gets the fully qualified name of a type or symbol.)
1163
+
1164
+ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
1165
+ -----------------
1166
+ module myModule;
1167
+
1168
+ int i;
1169
+ static assert(__traits(fullyQualifiedName, i) == "myModule.i");
1170
+
1171
+ struct MyStruct {}
1172
+ static assert(__traits(fullyQualifiedName, const MyStruct[]) == "const(myModule.MyStruct[])");
1173
+ -----------------
1174
+ )
1175
+
1159
1176
$(H3 $(GNAME isNested))
1160
1177
1161
1178
$(P Takes one argument.
You can’t perform that action at this time.
0 commit comments