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

Method FindType

IDEHelper/Compiler/CeDebugger.cpp:4682–4707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4680}
4681
4682BfType* CeDebugger::FindType(const StringImpl& name)
4683{
4684 if (name == "System.Object")
4685 return mCeMachine->mCeModule->mContext->mBfObjectType;
4686
4687 BfParser parser(mCompiler->mSystem);
4688 BfPassInstance passInstance(mCompiler->mSystem);
4689 parser.SetSource(name.c_str(), (int)name.length());
4690 parser.Parse(&passInstance);
4691
4692 BfReducer reducer;
4693 reducer.mAlloc = parser.mAlloc;
4694 reducer.mSystem = mCompiler->mSystem;
4695 reducer.mPassInstance = &passInstance;
4696 reducer.mVisitorPos = BfReducer::BfVisitorPos(parser.mRootNode);
4697 reducer.mVisitorPos.MoveNext();
4698 reducer.mSource = &parser;
4699 auto typeRef = reducer.CreateTypeRef(parser.mRootNode->GetFirst());
4700 parser.Close();
4701
4702 auto ceModule = mCeMachine->mCeModule;
4703 SetAndRestoreValue<bool> prevIgnoreErrors(ceModule->mIgnoreErrors, true);
4704 SetAndRestoreValue<bool> prevIgnoreWarning(ceModule->mIgnoreWarnings, true);
4705
4706 return ceModule->ResolveTypeRef(typeRef, {}, BfPopulateType_Declaration, BfResolveTypeRefFlag_IgnoreLookupError);
4707}
4708
4709String CeDebugger::Callstack_GetStackFrameOldFileInfo(int stackFrameIdx)
4710{

Callers

nothing calls this directly

Calls 10

BfVisitorPosClass · 0.85
CreateTypeRefMethod · 0.80
SetSourceMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45
ParseMethod · 0.45
MoveNextMethod · 0.45
GetFirstMethod · 0.45
CloseMethod · 0.45
ResolveTypeRefMethod · 0.45

Tested by

no test coverage detected