summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab/Definitions.java
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-03-13 15:56:39 +0000
committerpaltherr <paltherr@epfl.ch>2004-03-13 15:56:39 +0000
commit848d9a68a9e45a78ad991e8c3210d01b9486c18d (patch)
tree573f40f4dbf6c52dbdd44c7e51ded83524066872 /sources/scalac/symtab/Definitions.java
parent354a08de0ddf313f4e6293a2a439c7f5ca51144b (diff)
downloadscala-848d9a68a9e45a78ad991e8c3210d01b9486c18d.tar.gz
scala-848d9a68a9e45a78ad991e8c3210d01b9486c18d.tar.bz2
scala-848d9a68a9e45a78ad991e8c3210d01b9486c18d.zip
- In class Name renamed sub, pos, lastPos into ...
- In class Name renamed sub, pos, lastPos into charAt, indexOf, - lastIndexOf In those methdos, replaced byte by char
Diffstat (limited to 'sources/scalac/symtab/Definitions.java')
-rw-r--r--sources/scalac/symtab/Definitions.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/sources/scalac/symtab/Definitions.java b/sources/scalac/symtab/Definitions.java
index 09d996915b..0fa7c88e25 100644
--- a/sources/scalac/symtab/Definitions.java
+++ b/sources/scalac/symtab/Definitions.java
@@ -620,11 +620,11 @@ public class Definitions {
public Symbol getModule(Name fullname, boolean fail) {
Scope scope = ROOT_CLASS.members();
int i = 0;
- int j = fullname.pos((byte)'.', i);
- while (j < fullname.length()) {
+ int j = fullname.indexOf('.', i);
+ while (j >= 0) {
scope = scope.lookup(fullname.subName(i, j)).members();
i = j + 1;
- j = fullname.pos((byte)'.', i);
+ j = fullname.indexOf('.', i);
}
Symbol sym = scope.lookup(fullname.subName(i, fullname.length()));
if (!sym.isModule()) {
@@ -648,11 +648,11 @@ public class Definitions {
public Symbol getClass(Name fullname) {
Scope scope = ROOT_CLASS.members();
int i = 0;
- int j = fullname.pos((byte)'.', i);
- while (j < fullname.length()) {
+ int j = fullname.indexOf('.', i);
+ while (j >= 0) {
scope = scope.lookup(fullname.subName(i, j)).members();
i = j + 1;
- j = fullname.pos((byte)'.', i);
+ j = fullname.indexOf('.', i);
}
Symbol sym = scope.lookup(fullname.subName(i, fullname.length()).toTypeName());
assert sym.kind != Kinds.NONE : "no class '" + fullname + "'";