チェンジセット 1200: as3/ASReflect

差分発生行の前後
無視リスト:
コミット日時:
2008/08/30 12:37:52 (4 ヶ月前)
コミッタ:
nobu
ログメッセージ:

ASReflect: fixed #56 warning を吐いてた箇所を修正。

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/ASReflect/trunk/src/org/libspark/asreflect/builders/BasicFactoryHandler.as

    r297 r1200  
    1 /* 
     1/* 
    22 * Copyright(c) 2006-2007 the Spark project. 
    33 * 
     
    5353        public function handleChildCreated(context:ParseContext, object:Object):void 
    5454        { 
     55            var type:BasicType; 
     56            var method:Method; 
     57            var property:Property; 
     58 
    5559            if (object is Method) { 
    56                 var type:BasicType = BasicType(context.peek()); 
    57                 var method:Method = Method(object); 
     60                type = BasicType(context.peek()); 
     61                method = Method(object); 
    5862                 
    5963                if (method.declaringClass != type.nativeClass) { 
     
    6468            } 
    6569            else if (object is Property) { 
    66                 var type:BasicType = BasicType(context.peek()); 
    67                 var property:Property = Property(object); 
     70                type = BasicType(context.peek()); 
     71                property = Property(object); 
    6872                 
    6973                if (property.hasAccessor) { 
  • as3/ASReflect/trunk/src/org/libspark/asreflect/builders/BasicTypeHandler.as

    r297 r1200  
    1 /* 
     1/* 
    22 * Copyright(c) 2006-2007 the Spark project. 
    33 * 
     
    7575        public function handleChildCreated(context:ParseContext, object:Object):void 
    7676        { 
     77            var type:BasicType; 
     78            var method:Method; 
     79            var property:Property; 
     80 
    7781            if (object is Method) { 
    78                 var type:BasicType = BasicType(context.peek()); 
    79                 var method:Method = Method(object); 
     82                type = BasicType(context.peek()); 
     83                method = Method(object); 
    8084                 
    8185                if (method.declaringClass != type.nativeClass) { 
     
    8690            } 
    8791            else if (object is Property) { 
    88                 var type:BasicType = BasicType(context.peek()); 
    89                 var property:Property = Property(object); 
     92                type = BasicType(context.peek()); 
     93                property = Property(object); 
    9094                 
    9195                if (property.hasAccessor) {