DwAutoComplete.h 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #pragma once
  2. #include "DebugCommon.h"
  3. #include "Compiler/BfAutoComplete.h"
  4. #include "BeefySysLib/util/Array.h"
  5. NS_BF_DBG_BEGIN
  6. class DbgSubprogram;
  7. class DbgType;
  8. typedef Beefy::Array<DbgType*> DwTypeVector;
  9. class DwAutoComplete : public Beefy::AutoCompleteBase
  10. {
  11. public:
  12. class MethodMatchEntry
  13. {
  14. public:
  15. DwTypeVector mDwGenericArguments;
  16. DbgSubprogram* mDwSubprogram;
  17. };
  18. class MethodMatchInfo
  19. {
  20. public:
  21. Beefy::Array<MethodMatchEntry> mInstanceList;
  22. int mBestIdx;
  23. int mPrevBestIdx;
  24. bool mHadExactMatch;
  25. int mMostParamsMatched;
  26. Beefy::Array<int> mSrcPositions; // start, commas, end
  27. public:
  28. MethodMatchInfo()
  29. {
  30. mBestIdx = 0;
  31. mPrevBestIdx = -1;
  32. mHadExactMatch = false;
  33. mMostParamsMatched = 0;
  34. }
  35. };
  36. MethodMatchInfo* mMethodMatchInfo;
  37. bool mIsCapturingMethodMatchInfo;
  38. public:
  39. DwAutoComplete()
  40. {
  41. mMethodMatchInfo = NULL;
  42. mIsCapturingMethodMatchInfo = false;
  43. }
  44. ~DwAutoComplete()
  45. {
  46. delete mMethodMatchInfo;
  47. }
  48. };
  49. NS_BF_DBG_END