diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-02-08 15:37:34 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2010-02-08 15:37:34 +0000 |
commit | ac7dc3c10243af1bb3affb0ffb0a369b9b1bfeaa (patch) | |
tree | c2e7abc58df2728b62956c8ffb9f36a376721f47 /src/msil/ch | |
parent | 7577ec4388010c7c927a2d2050b59dea97c508a2 (diff) | |
download | scala-ac7dc3c10243af1bb3affb0ffb0a369b9b1bfeaa.tar.gz scala-ac7dc3c10243af1bb3affb0ffb0a369b9b1bfeaa.tar.bz2 scala-ac7dc3c10243af1bb3affb0ffb0a369b9b1bfeaa.zip |
fix msil build (nested classes in particular).
Diffstat (limited to 'src/msil/ch')
-rw-r--r-- | src/msil/ch/epfl/lamp/compiler/msil/emit/TypeBuilder.scala | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/msil/ch/epfl/lamp/compiler/msil/emit/TypeBuilder.scala b/src/msil/ch/epfl/lamp/compiler/msil/emit/TypeBuilder.scala index 84fd2a4023..2c0ab29b90 100644 --- a/src/msil/ch/epfl/lamp/compiler/msil/emit/TypeBuilder.scala +++ b/src/msil/ch/epfl/lamp/compiler/msil/emit/TypeBuilder.scala @@ -141,14 +141,19 @@ class TypeBuilder (module: Module, attributes: Int, fullName: String, baseType: /** Searches for the nested type with the specified name. */ override def GetNestedType(name: String): Type = { - testRaw(name) - return super.GetNestedType(name) + testRaw(name) + super.GetNestedType(name) } /** Returns all the types nested within the current Type. */ override def GetNestedTypes(): Array[Type] = { - testRaw("<GetNestedTypes>") - return super.GetNestedTypes() + testRaw("<GetNestedTypes>") + super.GetNestedTypes() + } + + /** Returns a Type object that represents a one-dimensional array of the current type */ + def MakeArrayType(): Type = { + Type.mkArray(this, 1) } /** Sets a custom attribute. */ @@ -184,8 +189,7 @@ class TypeBuilder (module: Module, attributes: Int, fullName: String, baseType: // i.e. not finalized by call to CreateType protected def testRaw(member: String) { if (raw) - throw new RuntimeException - ("Not supported for TypeBuilder before CreateType(): " + + throw new RuntimeException("Not supported for TypeBuilder before CreateType(): " + FullName + "::" + member) } |