MCPcopy Create free account
hub / github.com/beefytech/Beef / CheckFixit

Method CheckFixit

IDEHelper/Compiler/BfAutoComplete.cpp:3461–3477  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3459}
3460
3461bool BfAutoComplete::CheckFixit(BfAstNode* node)
3462{
3463 if (mIgnoreFixits)
3464 return false;
3465 if (mModule == NULL)
3466 return false;
3467 if (mCompiler->mResolvePassData->mResolveType != BfResolveType_GetFixits)
3468 return false;
3469 if (!IsAutocompleteLineNode(node))
3470 return false;
3471 if (mInsertStartIdx == -1)
3472 {
3473 mInsertStartIdx = node->GetSrcStart();
3474 mInsertEndIdx = node->GetSrcStart();
3475 }
3476 return true;
3477}
3478
3479int BfAutoComplete::FixitGetMemberInsertPos(BfTypeDef* typeDef)
3480{

Callers 15

VisitMethod · 0.80
WarnMethod · 0.80
EmitCtorBodyMethod · 0.80
ResolveTypeResultMethod · 0.80
CheckTypeRefFixitMethod · 0.80
CastToValueMethod · 0.80
VisitMethod · 0.80
LookupFieldMethod · 0.80
CreateCallMethod · 0.80
MatchMethodMethod · 0.80
LookupQualifiedNameMethod · 0.80

Calls 1

GetSrcStartMethod · 0.45

Tested by

no test coverage detected