File tree 1 file changed +0
-22
lines changed
compiler/src/dotty/tools/dotc/core/classfile
1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -1082,28 +1082,6 @@ class ClassfileParser(
1082
1082
getExternalName(in.getChar(start + 1 ))
1083
1083
}
1084
1084
1085
- /** Return a name and a type at the given index.
1086
- */
1087
- private def getNameAndType (index : Int , ownerTpe : Type )(implicit ctx : Context ): (Name , Type ) = {
1088
- if (index <= 0 || len <= index) errorBadIndex(index)
1089
- var p = values(index).asInstanceOf [(Name , Type )]
1090
- if (p eq null ) {
1091
- val start = starts(index)
1092
- if (in.buf(start).toInt != CONSTANT_NAMEANDTYPE ) errorBadTag(start)
1093
- val name = getName(in.getChar(start + 1 ).toInt)
1094
- var tpe = getType(in.getChar(start + 3 ).toInt)
1095
- // fix the return type, which is blindly set to the class currently parsed
1096
- if (name == nme.CONSTRUCTOR )
1097
- tpe match {
1098
- case tp : MethodType =>
1099
- tp.derivedLambdaType(tp.paramNames, tp.paramInfos, ownerTpe)
1100
- }
1101
- p = (name, tpe)
1102
- values(index) = p
1103
- }
1104
- p
1105
- }
1106
-
1107
1085
/** Return the type of a class constant entry. Since
1108
1086
* arrays are considered to be class types, they might
1109
1087
* appear as entries in 'newarray' or 'cast' opcodes.
You can’t perform that action at this time.
0 commit comments