| 1361 | }; |
| 1362 | |
| 1363 | struct BfGenericParamSource |
| 1364 | { |
| 1365 | public: |
| 1366 | BfTypeInstance* mTypeInstance; |
| 1367 | BfMethodInstance* mMethodInstance; |
| 1368 | bool mCheckAccessibility; |
| 1369 | |
| 1370 | public: |
| 1371 | BfGenericParamSource() |
| 1372 | { |
| 1373 | mTypeInstance = NULL; |
| 1374 | mMethodInstance = NULL; |
| 1375 | mCheckAccessibility = true; |
| 1376 | } |
| 1377 | |
| 1378 | BfGenericParamSource(BfTypeInstance* typeInstance) |
| 1379 | { |
| 1380 | mTypeInstance = typeInstance; |
| 1381 | mMethodInstance = NULL; |
| 1382 | mCheckAccessibility = true; |
| 1383 | } |
| 1384 | |
| 1385 | BfGenericParamSource(BfMethodInstance* methodInstance) |
| 1386 | { |
| 1387 | mTypeInstance = NULL; |
| 1388 | mMethodInstance = methodInstance; |
| 1389 | mCheckAccessibility = true; |
| 1390 | } |
| 1391 | |
| 1392 | BfTypeInstance* GetTypeInstance() const |
| 1393 | { |
| 1394 | if (mTypeInstance != NULL) |
| 1395 | return mTypeInstance; |
| 1396 | if (mMethodInstance != NULL) |
| 1397 | return mMethodInstance->GetOwner(); |
| 1398 | return NULL; |
| 1399 | } |
| 1400 | }; |
| 1401 | |
| 1402 | class BfAmbiguityContext |
| 1403 | { |
no outgoing calls
no test coverage detected