1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

If we wrap a parameter's type in RefSupport then *that* is the value for boxedType

This commit is contained in:
Kevin Glynn 2011-11-11 19:33:38 +01:00
parent cf5cca5fa5
commit b446f68eb6

View File

@ -2888,12 +2888,12 @@ scope ForceUnsharedType;
})?
// make a copy of the type parameter so that we can set iswrapped below
{ oldFresh = $ForceUnsharedType::fresh; $ForceUnsharedType::fresh = isRefOut;}
type { $boxedTypeTree = $type.boxedTree; }
type
{ $ForceUnsharedType::fresh = oldFresh; }
identifier { $paramType = $type.dotNetType; $type.dotNetType.IsWrapped = isRefOut; $SymTab::symtab[$identifier.thetext] = $type.dotNetType; }
default_argument?
magicRef[isRefOut, $type.tree != null ? $type.tree.Token : null, $type.tree]
{ $boxedTypeTree = isRefOut ? dupTree($magicRef.tree) : $type.boxedTree; }
-> {isRefOut}? magicRef identifier default_argument?
-> parameter_modifier? type identifier default_argument?
;