comparison dmd/StorageClassDeclaration.d @ 179:cd48cb899aee

Updated to dmd2.040
author korDen
date Sun, 17 Oct 2010 20:56:07 +0400
parents e3afd1303184
children b0d41ff5e0df
comparison
equal deleted inserted replaced
178:e3afd1303184 179:cd48cb899aee
111 { STCoverride, TOKoverride }, 111 { STCoverride, TOKoverride },
112 { STClazy, TOKlazy }, 112 { STClazy, TOKlazy },
113 { STCalias, TOKalias }, 113 { STCalias, TOKalias },
114 { STCout, TOKout }, 114 { STCout, TOKout },
115 { STCin, TOKin }, 115 { STCin, TOKin },
116 /// version (DMDV2) { 116 ///version (DMDV2) {
117 /// { STCimmutable, TOKimmutable }, 117 { STCimmutable, TOKimmutable },
118 /// { STCshared, TOKshared }, 118 { STCshared, TOKshared },
119 /// { STCnothrow, TOKnothrow }, 119 { STCnothrow, TOKnothrow },
120 /// { STCpure, TOKpure }, 120 { STCpure, TOKpure },
121 /// { STCref, TOKref }, 121 { STCref, TOKref },
122 /// { STCtls, TOKtls }, 122 { STCtls, TOKtls },
123 /// { STCgshared, TOKgshared }, 123 { STCgshared, TOKgshared },
124 /// { STCproperty, TOKat }, 124 { STCproperty, TOKat },
125 /// { STCsafe, TOKat }, 125 { STCsafe, TOKat },
126 /// { STCtrusted, TOKat }, 126 { STCtrusted, TOKat },
127 /// } 127 { STCdisable, TOKat },
128 ///}
128 ]; 129 ];
129 130
130 for (int i = 0; i < table.length; i++) 131 for (int i = 0; i < table.length; i++)
131 { 132 {
132 if (stc & table[i].stc) 133 if (stc & table[i].stc)
139 id = Id.property; 140 id = Id.property;
140 else if (stc & STCsafe) 141 else if (stc & STCsafe)
141 id = Id.safe; 142 id = Id.safe;
142 else if (stc & STCtrusted) 143 else if (stc & STCtrusted)
143 id = Id.trusted; 144 id = Id.trusted;
145 else if (stc & STCdisable)
146 id = Id.disable;
144 else 147 else
145 assert(0); 148 assert(0);
146 buf.writestring(id.toChars()); 149 buf.writestring(id.toChars());
147 } 150 }
148 else 151 else