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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user