MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getFieldOffset

Method getFieldOffset

src/ast/ast_handle.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 }
86
87 uint32_t BasicStructureAnnotation::getFieldOffset ( const string & na ) const {
88 auto it = fields.find(na);
89 if ( it!=fields.end() ) {
90 return it->second.offset;
91 } else {
92 return -1U;
93 }
94 }
95
96 TypeDeclPtr BasicStructureAnnotation::makeFieldType ( const string & na, bool isConst ) const {
97 auto it = fields.find(na);

Callers 5

sv_trySimulate_FieldMethod · 0.45
visitMethod · 0.45
serializeFieldMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected