Changeset 1599
- Timestamp:
- 08/28/08 06:47:54 (3 months ago)
- Location:
- cobra/trunk/Source
- Files:
-
- 2 modified
-
Expr.cobra (modified) (1 diff)
-
Members.cobra (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/Source/Expr.cobra
r1598 r1599 1496 1496 name = '_ch_ext_init_[.serialNum]' # ch = class helper, ext = extended, init = initializer 1497 1497 m = Method(token.copy('ID', name), box, name, paramsForDecl, _type, nil, ['shared', 'private'], AttributeList(), '') 1498 m.isCompilerGenerated = true 1498 1499 m.locals.add(LocalVar(token.copy('ID', 'obj'), .type)) 1499 1500 -
cobra/trunk/Source/Members.cobra
r1594 r1599 636 636 var _hasYieldStmt as bool 637 637 var _curStmtIndex as int # to implement .replaceChild 638 var _isCompilerGenerated as bool 638 639 var _sharpResultVarName = '' 639 640 … … 666 667 667 668 pro hasYieldStmt from var 669 670 pro isCompilerGenerated from var 668 671 669 672 def addStmt(stmt as Stmt) … … 1070 1073 1071 1074 def writeSharpParamCheck(param as Param, sw as SharpWriter) 1075 if .isCompilerGenerated, return 1072 1076 if param.type.isReference and not param.type inherits NilableType and not param.isOut 1073 1077 if .compiler.options.boolValue('include-nil-checks')
