MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / has_local

Method has_local

modules/gdscript/gdscript_parser.cpp:4251–4259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4249}
4250
4251bool GDScriptParser::SuiteNode::has_local(const StringName &p_name) const {
4252 if (locals_indices.has(p_name)) {
4253 return true;
4254 }
4255 if (parent_block != nullptr) {
4256 return parent_block->has_local(p_name);
4257 }
4258 return false;
4259}
4260
4261const GDScriptParser::SuiteNode::Local &GDScriptParser::SuiteNode::get_local(const StringName &p_name) const {
4262 if (locals_indices.has(p_name)) {

Callers 7

resolve_datatypeMethod · 0.80
resolve_assignableMethod · 0.80
reduce_identifierMethod · 0.80
parse_match_patternMethod · 0.80
parse_identifierMethod · 0.80
_guess_identifier_typeFunction · 0.80
lookup_codeMethod · 0.80

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected