MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / physical_type

Method physical_type

3rdparty/ccc/src/ccc/ast.cpp:23–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23std::pair<Node*, DataType*> Node::physical_type(SymbolDatabase& database, s32 max_depth)
24{
25 Node* type = this;
26 DataType* symbol = nullptr;
27 for(s32 i = 0; i < max_depth && type->descriptor == TYPE_NAME; i++) {
28 DataType* data_type = database.data_types.symbol_from_handle(type->as<TypeName>().data_type_handle);
29 if (!data_type || !data_type->type()) {
30 break;
31 }
32
33 type = data_type->type();
34 symbol = data_type;
35 }
36
37 return std::pair(type, symbol);
38}
39
40std::pair<const Node*, const DataType*> Node::physical_type(const SymbolDatabase& database, s32 max_depth) const
41{

Callers 8

createEditorMethod · 0.80
setModelDataMethod · 0.80
populateChildrenMethod · 0.80
nodeHasChildrenMethod · 0.80
readFromVMMethod · 0.80
writeToVMMethod · 0.80
updateDisplayStringMethod · 0.80
generateDisplayStringMethod · 0.80

Calls 2

symbol_from_handleMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected