Browse Source

Removed unused type evaluation (see desc)

Threw an exception when an import member could not be found.
Also, the value was not used anywhere
kindlich 5 years ago
parent
commit
6be789d2c9
No known key found for this signature in database

+ 1
- 1
Parser/src/main/java/org/openzen/zenscript/parser/expression/ParsedExpressionMember.java View File

44
 				scope.hints,
44
 				scope.hints,
45
 				new GenericName(this.member, typeArguments));
45
 				new GenericName(this.member, typeArguments));
46
 		if (member == null) {
46
 		if (member == null) {
47
-			TypeMembers members = scope.getTypeMembers(cValue.eval().type);
47
+			//TypeMembers members = scope.getTypeMembers(cValue.eval().type);
48
 			throw new CompileException(position, CompileExceptionCode.NO_SUCH_MEMBER, "Member not found: " + this.member);
48
 			throw new CompileException(position, CompileExceptionCode.NO_SUCH_MEMBER, "Member not found: " + this.member);
49
 		}
49
 		}
50
 		
50
 		

Loading…
Cancel
Save