90 public final TypeSymbol noSymbol; |
90 public final TypeSymbol noSymbol; |
91 |
91 |
92 /** The error symbol. |
92 /** The error symbol. |
93 */ |
93 */ |
94 public final ClassSymbol errSymbol; |
94 public final ClassSymbol errSymbol; |
|
95 |
|
96 /** The unknown symbol. |
|
97 */ |
|
98 public final ClassSymbol unknownSymbol; |
95 |
99 |
96 /** A value for the errType, with a originalType of noType */ |
100 /** A value for the errType, with a originalType of noType */ |
97 public final Type errType; |
101 public final Type errType; |
98 |
102 |
99 /** A value for the unknown type. */ |
103 /** A value for the unknown type. */ |
352 noSymbol = new TypeSymbol(0, names.empty, Type.noType, rootPackage); |
356 noSymbol = new TypeSymbol(0, names.empty, Type.noType, rootPackage); |
353 noSymbol.kind = Kinds.NIL; |
357 noSymbol.kind = Kinds.NIL; |
354 |
358 |
355 // create the error symbols |
359 // create the error symbols |
356 errSymbol = new ClassSymbol(PUBLIC|STATIC|ACYCLIC, names.any, null, rootPackage); |
360 errSymbol = new ClassSymbol(PUBLIC|STATIC|ACYCLIC, names.any, null, rootPackage); |
|
361 unknownSymbol = new ClassSymbol(PUBLIC|STATIC|ACYCLIC, names.fromString("<any?>"), null, rootPackage); |
357 errType = new ErrorType(errSymbol, Type.noType); |
362 errType = new ErrorType(errSymbol, Type.noType); |
358 |
363 |
359 // initialize builtin types |
364 // initialize builtin types |
360 initType(byteType, "byte", "Byte"); |
365 initType(byteType, "byte", "Byte"); |
361 initType(shortType, "short", "Short"); |
366 initType(shortType, "short", "Short"); |
366 initType(doubleType, "double", "Double"); |
371 initType(doubleType, "double", "Double"); |
367 initType(booleanType, "boolean", "Boolean"); |
372 initType(booleanType, "boolean", "Boolean"); |
368 initType(voidType, "void", "Void"); |
373 initType(voidType, "void", "Void"); |
369 initType(botType, "<nulltype>"); |
374 initType(botType, "<nulltype>"); |
370 initType(errType, errSymbol); |
375 initType(errType, errSymbol); |
371 initType(unknownType, "<any?>"); |
376 initType(unknownType, unknownSymbol); |
372 |
377 |
373 // the builtin class of all arrays |
378 // the builtin class of all arrays |
374 arrayClass = new ClassSymbol(PUBLIC|ACYCLIC, names.Array, noSymbol); |
379 arrayClass = new ClassSymbol(PUBLIC|ACYCLIC, names.Array, noSymbol); |
375 |
380 |
376 // VGJ |
381 // VGJ |