mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
commit
fc61eb37ce
25 changed files with 60 additions and 61 deletions
|
|
@ -2094,7 +2094,7 @@ Error GDScriptLanguage::complete_code(const String& p_code, const String& p_base
|
|||
|
||||
GDParser p;
|
||||
|
||||
Error err = p.parse(p_code,p_base_path,false,"",true);
|
||||
p.parse(p_code,p_base_path,false,"",true);
|
||||
bool isfunction=false;
|
||||
Set<String> options;
|
||||
|
||||
|
|
|
|||
|
|
@ -1332,7 +1332,7 @@ StringName GDTokenizerBuffer::get_token_identifier(int p_offset) const{
|
|||
|
||||
ERR_FAIL_INDEX_V(offset,tokens.size(),StringName());
|
||||
uint32_t identifier = tokens[offset]>>TOKEN_BITS;
|
||||
ERR_FAIL_INDEX_V(identifier,identifiers.size(),StringName());
|
||||
ERR_FAIL_INDEX_V(identifier,(uint32_t)identifiers.size(),StringName());
|
||||
|
||||
return identifiers[identifier];
|
||||
}
|
||||
|
|
@ -1391,7 +1391,7 @@ const Variant& GDTokenizerBuffer::get_token_constant(int p_offset) const{
|
|||
int offset = token+p_offset;
|
||||
ERR_FAIL_INDEX_V(offset,tokens.size(),nil);
|
||||
uint32_t constant = tokens[offset]>>TOKEN_BITS;
|
||||
ERR_FAIL_INDEX_V(constant,constants.size(),nil);
|
||||
ERR_FAIL_INDEX_V(constant,(uint32_t)constants.size(),nil);
|
||||
return constants[constant];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue