| 1080 | } |
| 1081 | |
| 1082 | bool BfMethodInstance::AllowsSplatting(int paramIdx) |
| 1083 | { |
| 1084 | if (paramIdx == -1) |
| 1085 | { |
| 1086 | if (mCallingConvention != BfCallingConvention_Unspecified) |
| 1087 | return false; |
| 1088 | if (ForcingThisPtr()) |
| 1089 | return false; |
| 1090 | if (mMethodDef->mIsNoSplat) |
| 1091 | return false; |
| 1092 | return !mMethodDef->HasNoThisSplat(); |
| 1093 | } |
| 1094 | else |
| 1095 | { |
| 1096 | if (mCallingConvention != BfCallingConvention_Unspecified) |
| 1097 | return false; |
| 1098 | if ((mMethodDef->mIsNoSplat) || (mMethodDef->mMethodType == BfMethodType_Mixin)) |
| 1099 | { |
| 1100 | if (IsImplicitCapture(paramIdx)) |
| 1101 | return true; |
| 1102 | return false; |
| 1103 | } |
| 1104 | return true; |
| 1105 | } |
| 1106 | } |
| 1107 | |
| 1108 | bool BfMethodInstance::HasThis() |
| 1109 | { |
no test coverage detected