class MockEvalContext
Defined at line 17 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
Public Methods
MockSymbolDataProvider * data_provider ()
Construct with fxl::MakeRefCounted().
Defined at line 21 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
PrettyTypeManager & pretty_type_manager ()
Defined at line 22 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void set_language (ExprLanguage lang)
Defined at line 24 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void set_abi (std::shared_ptr<Abi> abi)
Defined at line 25 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void set_vector_register_format (VectorRegisterFormat fmt)
Defined at line 26 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void set_should_promote_to_derived (bool p)
Defined at line 27 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void AddName (const ParsedIdentifier & ident, FoundName found)
Adds a result to the mocked data returned by FindName.
Defined at line 37 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
void AddVariable (const std::string & name, ExprValue v)
Adds the given mocked variable with the given name and value. If using the "Value" variant, the
checked thing is the actual pointer value, not the name.
This also registers a result via AddName. The FoundName will be a Variable type.
IMPORTANT: This Variable registered for the mocked FindName() will have the name set but
nothing else. This means it won't be quite a perfect mock, but is sufficient for knowing that
a variable with that name exists (for the parser).
Defined at line 41 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
ExprLanguage GetLanguage ()
EvalContext implementation.
Defined at line 50 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void AddVariable (const Value * key, ExprValue v)
Defined at line 50 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
const std::shared_ptr<Abi> & GetAbi ()
Defined at line 51 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void AddLocation (uint64_t address, Location location)
Adds a location result for GetLocationForAddress().
Defined at line 59 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
const PrettyTypeManager & GetPrettyTypeManager ()
Defined at line 62 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
VectorRegisterFormat GetVectorRegisterFormat ()
Defined at line 63 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void AddBuiltinFunction (const ParsedIdentifier & name, BuiltinFuncCallback impl)
Adds a builtin function.
Defined at line 63 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
bool ShouldPromoteToDerived ()
Defined at line 64 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.h
void FindName (const FindNameOptions & options, const ParsedIdentifier & looking_for, std::vector<FoundName> * results)
Defined at line 67 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
FindNameContext GetFindNameContext ()
Defined at line 81 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
void GetNamedValue (const ParsedIdentifier & ident, EvalCallback cb)
Defined at line 83 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
void GetVariableValue (fxl::RefPtr<Value> variable, EvalCallback cb)
Defined at line 107 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
const BuiltinFuncCallback * GetBuiltinFunction (const ParsedIdentifier & name)
Defined at line 115 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
const ProcessSymbols * GetProcessSymbols ()
Defined at line 123 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
fxl::RefPtr<SymbolDataProvider> GetDataProvider ()
Defined at line 125 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
Location GetLocationForAddress (uint64_t address)
Defined at line 127 of file ../../src/developer/debug/zxdb/expr/mock_eval_context.cc
Friends
class MakeRefCountedHelper
class RefCountedThreadSafe