Changeset 1582 for cobra/trunk/Source/Expr.cobra
- Timestamp:
- 08/18/08 11:40:51 (5 months ago)
- Files:
-
- 1 modified
-
cobra/trunk/Source/Expr.cobra (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r1581 r1582 1748 1748 # _foo(x) --> ._foo(x) 1749 1749 newCall = CallExpr(.token, .name, .args) 1750 dotted = DotExpr(.token, 'DOT', ThisLit(.token , .curCodeMember.box), newCall, true).bindImp1750 dotted = DotExpr(.token, 'DOT', ThisLit(.token), newCall, true).bindImp 1751 1751 _type = dotted.type to IType 1752 1752 _transformTo(dotted) … … 2942 2942 2943 2943 class ThisOrBaseLit 2944 is abstract 2944 2945 inherits AtomicLiteral 2945 2946 def init(token as IToken, box as Box) 2947 base.init(token) 2948 _type = box 2946 """ 2947 The "current box" used to be passed to .init rather than referenced in _bindImp, but that 2948 didn't work well with partial classes. Also, it's not necessary to creating a ThisOrBaseLit. 2949 """ 2950 2951 def init(token as IToken) 2952 base.init(token) 2949 2953 2950 2954 def _bindImp 2951 2955 base._bindImp 2956 _type = .compiler.curBox 2952 2957 if _type inherits Extension 2953 2958 _type = _type.extendedBox … … 2957 2962 inherits ThisOrBaseLit 2958 2963 2959 def init(token as IToken , box as Box)2960 base.init(token , box)2964 def init(token as IToken) 2965 base.init(token) 2961 2966 2962 2967 def checkType is override … … 2984 2989 # "this" (unless C# allows that which I doubt) 2985 2990 2986 def init(token as IToken , box as Box)2987 base.init(token , box)2991 def init(token as IToken) 2992 base.init(token) 2988 2993 2989 2994 get isExplicit as bool
