mirror of
https://github.com/godotengine/godot.git
synced 2025-10-25 18:54:43 +00:00
Misc. typos
Found via `codespell -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"`
This commit is contained in:
parent
0d04fb76e1
commit
08bde5b2de
81 changed files with 123 additions and 123 deletions
|
|
@ -2479,7 +2479,7 @@ void GDScriptParser::_generate_pattern(PatternNode *p_pattern, Node *p_node_to_m
|
|||
|
||||
Node *condition = NULL;
|
||||
|
||||
// chech for has, then for pattern
|
||||
// check for has, then for pattern
|
||||
|
||||
IdentifierNode *has = alloc_node<IdentifierNode>();
|
||||
has->name = "has";
|
||||
|
|
@ -4536,14 +4536,14 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
member.rpc_mode = rpc_mode;
|
||||
|
||||
if (current_class->constant_expressions.has(member.identifier)) {
|
||||
_set_error("A constant named '" + String(member.identifier) + "' alread exists in this class (at line: " +
|
||||
_set_error("A constant named '" + String(member.identifier) + "' already exists in this class (at line: " +
|
||||
itos(current_class->constant_expressions[member.identifier].expression->line) + ").");
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < current_class->variables.size(); i++) {
|
||||
if (current_class->variables[i].identifier == member.identifier) {
|
||||
_set_error("Variable '" + String(member.identifier) + "' alread exists in this class (at line: " +
|
||||
_set_error("Variable '" + String(member.identifier) + "' already exists in this class (at line: " +
|
||||
itos(current_class->variables[i].line) + ").");
|
||||
return;
|
||||
}
|
||||
|
|
@ -4750,14 +4750,14 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
int line = tokenizer->get_token_line();
|
||||
|
||||
if (current_class->constant_expressions.has(const_id)) {
|
||||
_set_error("Constant '" + String(const_id) + "' alread exists in this class (at line: " +
|
||||
_set_error("Constant '" + String(const_id) + "' already exists in this class (at line: " +
|
||||
itos(current_class->constant_expressions[const_id].expression->line) + ").");
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < current_class->variables.size(); i++) {
|
||||
if (current_class->variables[i].identifier == const_id) {
|
||||
_set_error("A variable named '" + String(const_id) + "' alread exists in this class (at line: " +
|
||||
_set_error("A variable named '" + String(const_id) + "' already exists in this class (at line: " +
|
||||
itos(current_class->variables[i].line) + ").");
|
||||
return;
|
||||
}
|
||||
|
|
@ -4811,7 +4811,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
case GDScriptTokenizer::TK_PR_ENUM: {
|
||||
//multiple constant declarations..
|
||||
|
||||
int last_assign = -1; // Incremented by 1 right before the assingment.
|
||||
int last_assign = -1; // Incremented by 1 right before the assignment.
|
||||
String enum_name;
|
||||
Dictionary enum_dict;
|
||||
|
||||
|
|
@ -7243,7 +7243,7 @@ void GDScriptParser::_check_class_level_types(ClassNode *p_class) {
|
|||
return;
|
||||
}
|
||||
|
||||
// Replace assigment with implict conversion
|
||||
// Replace assignment with implict conversion
|
||||
BuiltInFunctionNode *convert = alloc_node<BuiltInFunctionNode>();
|
||||
convert->line = v.line;
|
||||
convert->function = GDScriptFunctions::TYPE_CONVERT;
|
||||
|
|
@ -7621,7 +7621,7 @@ void GDScriptParser::_check_block_types(BlockNode *p_block) {
|
|||
lv->line);
|
||||
return;
|
||||
}
|
||||
// Replace assigment with implict conversion
|
||||
// Replace assignment with implict conversion
|
||||
BuiltInFunctionNode *convert = alloc_node<BuiltInFunctionNode>();
|
||||
convert->line = lv->line;
|
||||
convert->function = GDScriptFunctions::TYPE_CONVERT;
|
||||
|
|
@ -7749,7 +7749,7 @@ void GDScriptParser::_check_block_types(BlockNode *p_block) {
|
|||
op->line);
|
||||
return;
|
||||
}
|
||||
// Replace assigment with implict conversion
|
||||
// Replace assignment with implict conversion
|
||||
BuiltInFunctionNode *convert = alloc_node<BuiltInFunctionNode>();
|
||||
convert->line = op->line;
|
||||
convert->function = GDScriptFunctions::TYPE_CONVERT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue