mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
59
IDEHelper/DwAutoComplete.h
Normal file
59
IDEHelper/DwAutoComplete.h
Normal file
|
@ -0,0 +1,59 @@
|
|||
#pragma once
|
||||
|
||||
#include "DebugCommon.h"
|
||||
#include "Compiler/BfAutoComplete.h"
|
||||
#include "BeefySysLib/util/Array.h"
|
||||
|
||||
NS_BF_DBG_BEGIN
|
||||
|
||||
class DbgSubprogram;
|
||||
class DbgType;
|
||||
typedef Beefy::Array<DbgType*> DwTypeVector;
|
||||
|
||||
class DwAutoComplete : public Beefy::AutoCompleteBase
|
||||
{
|
||||
public:
|
||||
class MethodMatchEntry
|
||||
{
|
||||
public:
|
||||
DwTypeVector mDwGenericArguments;
|
||||
DbgSubprogram* mDwSubprogram;
|
||||
};
|
||||
|
||||
class MethodMatchInfo
|
||||
{
|
||||
public:
|
||||
Beefy::Array<MethodMatchEntry> mInstanceList;
|
||||
int mBestIdx;
|
||||
int mPrevBestIdx;
|
||||
bool mHadExactMatch;
|
||||
int mMostParamsMatched;
|
||||
Beefy::Array<int> mSrcPositions; // start, commas, end
|
||||
|
||||
public:
|
||||
MethodMatchInfo()
|
||||
{
|
||||
mBestIdx = 0;
|
||||
mPrevBestIdx = -1;
|
||||
mHadExactMatch = false;
|
||||
mMostParamsMatched = 0;
|
||||
}
|
||||
};
|
||||
|
||||
MethodMatchInfo* mMethodMatchInfo;
|
||||
bool mIsCapturingMethodMatchInfo;
|
||||
|
||||
public:
|
||||
DwAutoComplete()
|
||||
{
|
||||
mMethodMatchInfo = NULL;
|
||||
mIsCapturingMethodMatchInfo = false;
|
||||
}
|
||||
|
||||
~DwAutoComplete()
|
||||
{
|
||||
delete mMethodMatchInfo;
|
||||
}
|
||||
};
|
||||
|
||||
NS_BF_DBG_END
|
Loading…
Add table
Add a link
Reference in a new issue