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

Method get_name

modules/gdscript/gdscript_parser.cpp:5194–5211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5192}
5193
5194String GDScriptParser::SuiteNode::Local::get_name() const {
5195 switch (type) {
5196 case SuiteNode::Local::PARAMETER:
5197 return "parameter";
5198 case SuiteNode::Local::CONSTANT:
5199 return "constant";
5200 case SuiteNode::Local::VARIABLE:
5201 return "variable";
5202 case SuiteNode::Local::FOR_VARIABLE:
5203 return "for loop iterator";
5204 case SuiteNode::Local::PATTERN_BIND:
5205 return "pattern bind";
5206 case SuiteNode::Local::UNDEFINED:
5207 return "<undefined>";
5208 default:
5209 return String();
5210 }
5211}
5212
5213String GDScriptParser::DataType::to_string() const {
5214 switch (kind) {

Callers 8

end_statementMethod · 0.45
parse_suiteMethod · 0.45
parse_statementMethod · 0.45
parse_forMethod · 0.45
parse_match_patternMethod · 0.45
parse_binary_operatorMethod · 0.45
parse_get_nodeMethod · 0.45
to_stringMethod · 0.45

Calls 1

StringClass · 0.50

Tested by

no test coverage detected