mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 18:33:36 +00:00
Changed some code found by Clang Tidy and Coverity
This commit is contained in:
parent
2e065d8ad0
commit
50be65bf43
25 changed files with 142 additions and 155 deletions
|
|
@ -189,6 +189,7 @@ void ExtendGDScriptParser::parse_class_symbol(const GDScriptParser::ClassNode *p
|
|||
lsp::DocumentSymbol symbol;
|
||||
const GDScriptParser::ClassNode::Constant &c = E->value();
|
||||
const GDScriptParser::ConstantNode *node = dynamic_cast<const GDScriptParser::ConstantNode *>(c.expression);
|
||||
ERR_FAIL_COND(!node);
|
||||
symbol.name = E->key();
|
||||
symbol.kind = lsp::SymbolKind::Constant;
|
||||
symbol.deprecated = false;
|
||||
|
|
@ -674,6 +675,7 @@ Dictionary ExtendGDScriptParser::dump_class_api(const GDScriptParser::ClassNode
|
|||
|
||||
const GDScriptParser::ClassNode::Constant &c = E->value();
|
||||
const GDScriptParser::ConstantNode *node = dynamic_cast<const GDScriptParser::ConstantNode *>(c.expression);
|
||||
ERR_FAIL_COND_V(!node, class_api);
|
||||
|
||||
Dictionary api;
|
||||
api["name"] = E->key();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue