Some changes required for the new compiler.

- Import bleeding may be fixed, as I had to import a bunch of things I
  should have had to earlier.
- NOW they make duplicate variable definitions bad (but without block
  scoping... yay).
- Another hoopjump.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4233 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-06-28 22:04:19 +00:00
parent 0a5953bf17
commit 608be4557b
11 changed files with 46 additions and 33 deletions
+3 -2
View File
@@ -76,7 +76,8 @@ public class ClassUtil
// See which classes we extend.
var exts :XMLList = typeInfo.child("extendsClass").attribute("type");
for each (var type :String in exts) {
var type :String;
for each (type in exts) {
if (asClass == getClassByName(type)) {
return true;
}
@@ -85,7 +86,7 @@ public class ClassUtil
// See which interfaces we implement.
var imps :XMLList = typeInfo.child("implementsInterface")
.attribute("type");
for each (var type :String in imps) {
for each (type in imps) {
if (asClass == getClassByName(type)) {
return true;
}
+3 -2
View File
@@ -96,12 +96,13 @@ public class Hashtable
// documentation inherited from interface Map
public function put (key :Object, value :Object) :*
{
var oldValue :*;
if (isSimple(key)) {
if (_simpleData == null) {
_simpleData = new Dictionary();
}
var oldValue :* = _simpleData[key];
oldValue = _simpleData[key];
_simpleData[key] = value;
if (oldValue === undefined) {
_simpleSize++;
@@ -121,7 +122,7 @@ public class Hashtable
var firstEntry :Entry = (_entries[index] as Entry);
for (var e :Entry = firstEntry; e != null; e = e.next) {
if (e.hash == hash && e.key.equals(hkey)) {
var oldValue :* = e.value;
oldValue = e.value;
e.value = value;
return oldValue; // size did not change
}