|
5 | 5 | package scala.reflect |
6 | 6 | package api |
7 | 7 |
|
| 8 | +// Q: I have a pretty name. Where do I put it - into base.StandardNames or into api.StandardNames? |
| 9 | +// A: <see base.StandardNames> |
| 10 | + |
8 | 11 | trait StandardNames extends base.StandardNames { |
9 | 12 | self: Universe => |
10 | 13 |
|
11 | 14 | val nme: TermNamesApi |
12 | 15 | val tpnme: TypeNamesApi |
13 | 16 |
|
14 | 17 | trait NamesApi extends NamesBase { |
15 | | - val ANON_CLASS_NAME: NameType |
16 | | - val ANON_FUN_NAME: NameType |
| 18 | + val ROOT: NameType |
17 | 19 | val EMPTY: NameType |
18 | 20 | val ERROR: NameType |
19 | | - val IMPORT: NameType |
20 | | - val MODULE_VAR_SUFFIX: NameType |
21 | 21 | val PACKAGE: NameType |
22 | | - val ROOT: NameType |
23 | | - val SPECIALIZED_SUFFIX: NameType |
24 | | - |
25 | | - def flattenedName(segments: Name*): NameType |
26 | 22 | } |
27 | 23 |
|
28 | 24 | trait TermNamesApi extends NamesApi with TermNamesBase { |
29 | | - val EXPAND_SEPARATOR_STRING: String |
30 | | - val IMPL_CLASS_SUFFIX: String |
31 | | - val INTERPRETER_IMPORT_WRAPPER: String |
32 | | - val INTERPRETER_LINE_PREFIX: String |
33 | | - val INTERPRETER_VAR_PREFIX: String |
34 | | - val INTERPRETER_WRAPPER_SUFFIX: String |
35 | | - val LOCALDUMMY_PREFIX: String |
36 | 25 | val LOCAL_SUFFIX_STRING: String |
37 | | - val MODULE_SUFFIX_NAME: TermName |
38 | | - val NAME_JOIN_NAME: TermName |
39 | | - val PROTECTED_PREFIX: String |
40 | | - val PROTECTED_SET_PREFIX: String |
41 | | - val SETTER_SUFFIX: TermName |
42 | | - val SINGLETON_SUFFIX: String |
43 | | - val SUPER_PREFIX_STRING: String |
44 | | - val TRAIT_SETTER_SEPARATOR_STRING: String |
45 | | - |
46 | | - val FAKE_LOCAL_THIS: TermName |
47 | | - val INITIALIZER: TermName |
48 | | - val LAZY_LOCAL: TermName |
49 | | - val UNIVERSE_BUILD: NameType |
50 | | - val UNIVERSE_BUILD_PREFIX: NameType |
51 | | - val UNIVERSE_PREFIX: NameType |
52 | | - val UNIVERSE_SHORT: NameType |
53 | | - val MIRROR_PREFIX: NameType |
54 | | - val MIRROR_SHORT: NameType |
55 | | - val MIRROR_UNTYPED: NameType |
56 | | - val REIFY_FREE_PREFIX: NameType |
57 | | - val REIFY_FREE_THIS_SUFFIX: NameType |
58 | | - val REIFY_FREE_VALUE_SUFFIX: NameType |
59 | | - val REIFY_SYMDEF_PREFIX: NameType |
60 | | - val MIXIN_CONSTRUCTOR: TermName |
61 | | - val MODULE_INSTANCE_FIELD: TermName |
62 | | - val OUTER: TermName |
63 | | - val OUTER_LOCAL: TermName |
64 | | - val OUTER_SYNTH: TermName |
65 | | - val SELECTOR_DUMMY: TermName |
66 | | - val SELF: TermName |
67 | | - val SPECIALIZED_INSTANCE: TermName |
68 | | - val STAR: TermName |
69 | | - val THIS: TermName |
70 | | - |
71 | | - val BITMAP_NORMAL: TermName |
72 | | - val BITMAP_TRANSIENT: TermName |
73 | | - val BITMAP_CHECKINIT: TermName |
74 | | - val BITMAP_CHECKINIT_TRANSIENT: TermName |
75 | | - |
76 | | - val ROOTPKG: TermName |
77 | | - |
78 | | - val ADD: TermName |
79 | | - val AND: TermName |
80 | | - val ASR: TermName |
81 | | - val DIV: TermName |
82 | | - val EQ: TermName |
83 | | - val EQL: TermName |
84 | | - val GE: TermName |
85 | | - val GT: TermName |
86 | | - val HASHHASH: TermName |
87 | | - val LE: TermName |
88 | | - val LSL: TermName |
89 | | - val LSR: TermName |
90 | | - val LT: TermName |
91 | | - val MINUS: TermName |
92 | | - val MOD: TermName |
93 | | - val MUL: TermName |
94 | | - val NE: TermName |
95 | | - val OR: TermName |
96 | | - val PLUS : TermName |
97 | | - val SUB: TermName |
98 | | - val XOR: TermName |
99 | | - val ZAND: TermName |
100 | | - val ZOR: TermName |
101 | | - |
102 | | - val UNARY_~ : TermName |
103 | | - val UNARY_+ : TermName |
104 | | - val UNARY_- : TermName |
105 | | - val UNARY_! : TermName |
106 | | - |
107 | | - val ??? : TermName |
108 | | - |
109 | | - def isConstructorName(name: Name): Boolean |
110 | | - def isExceptionResultName(name: Name): Boolean |
111 | | - def isImplClassName(name: Name): Boolean |
112 | | - def isLocalDummyName(name: Name): Boolean |
113 | | - def isLocalName(name: Name): Boolean |
114 | | - def isLoopHeaderLabel(name: Name): Boolean |
115 | | - def isModuleName(name: Name): Boolean |
116 | | - def isOpAssignmentName(name: Name): Boolean |
117 | | - def isProtectedAccessorName(name: Name): Boolean |
118 | | - def isReplWrapperName(name: Name): Boolean |
119 | | - def isSetterName(name: Name): Boolean |
120 | | - def isSingletonName(name: Name): Boolean |
121 | | - def isSuperAccessorName(name: Name): Boolean |
122 | | - def isTraitSetterName(name: Name): Boolean |
123 | | - |
124 | | - def defaultGetterName(name: Name, pos: Int): TermName |
125 | | - def defaultGetterToMethod(name: Name): TermName |
126 | | - def expandedName(name: TermName, base: Symbol, separator: String): TermName |
127 | | - def expandedSetterName(name: TermName, base: Symbol): TermName |
128 | | - def getterName(name: TermName): TermName |
129 | | - def getterToLocal(name: TermName): TermName |
130 | | - def getterToSetter(name: TermName): TermName |
131 | | - def localDummyName(clazz: Symbol): TermName |
132 | | - def localToGetter(name: TermName): TermName |
133 | | - def protName(name: Name): TermName |
134 | | - def protSetterName(name: Name): TermName |
135 | | - def setterToGetter(name: TermName): TermName |
136 | | - def superName(name: Name): TermName |
137 | | - |
138 | | - def dropLocalSuffix(name: Name): Name |
139 | | - def originalName(name: Name): Name |
140 | | - def stripModuleSuffix(name: Name): Name |
141 | | - def unspecializedName(name: Name): Name |
142 | | - def segments(name: String, assumeTerm: Boolean): List[Name] |
143 | | - def splitSpecializedName(name: Name): (Name, String, String) |
144 | 26 | } |
145 | 27 |
|
146 | 28 | trait TypeNamesApi extends NamesApi with TypeNamesBase { |
147 | | - val BYNAME_PARAM_CLASS_NAME: TypeName |
148 | | - val EQUALS_PATTERN_NAME: TypeName |
149 | | - val JAVA_REPEATED_PARAM_CLASS_NAME: TypeName |
150 | | - val LOCAL_CHILD: TypeName |
151 | | - val REFINE_CLASS_NAME: TypeName |
152 | | - val REPEATED_PARAM_CLASS_NAME: TypeName |
153 | | - val WILDCARD_STAR: TypeName |
154 | | - val REIFY_TYPECREATOR_PREFIX: NameType |
155 | | - val REIFY_TREECREATOR_PREFIX: NameType |
156 | | - |
157 | | - def dropSingletonName(name: Name): TypeName |
158 | | - def implClassName(name: Name): TypeName |
159 | | - def interfaceName(implname: Name): TypeName |
160 | | - def singletonName(name: Name): TypeName |
161 | 29 | } |
162 | 30 | } |
0 commit comments