change comments to English
This commit is contained in:
@@ -113,8 +113,8 @@ impl TypeFacts {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
// Mock de NameId e SymbolId para testes simplificados se necessário,
|
||||
// ou usar valores reais.
|
||||
// Mock NameId and SymbolId for simplified tests if necessary,
|
||||
// or use real values.
|
||||
|
||||
#[test]
|
||||
fn type_arena_push_is_append_only() {
|
||||
@@ -138,7 +138,7 @@ mod tests {
|
||||
assert!(matches!(arena.kind(t1), TypeKind::Primitive { .. }));
|
||||
assert!(matches!(arena.kind(t2), TypeKind::Optional { .. }));
|
||||
|
||||
// Adicionar mais tipos não deve mudar os anteriores
|
||||
// Adding more types should not change the previous ones
|
||||
let t3 = arena.intern_type(TypeKind::Array { inner: t1, len: None });
|
||||
assert!(matches!(arena.kind(t1), TypeKind::Primitive { .. }));
|
||||
assert!(matches!(arena.kind(t2), TypeKind::Optional { .. }));
|
||||
|
||||
@@ -225,7 +225,7 @@ fn walk_node(
|
||||
walk_node(member, arena, module, index, imports, ref_index, node_to_symbol, diagnostics);
|
||||
}
|
||||
}
|
||||
// Nós literais ou que não contém outros nós para percorrer (neste nível)
|
||||
// Literal nodes or those that do not contain other nodes to walk (at this level)
|
||||
NodeKind::IntLit(_) | NodeKind::FloatLit(_) | NodeKind::BoundedLit(_) | NodeKind::StringLit(_) |
|
||||
NodeKind::TypeName(_) | NodeKind::TypeApp(_) | NodeKind::Import(_) | NodeKind::ImportSpec(_) |
|
||||
NodeKind::ServiceFnSig(_) | NodeKind::ConstructorDecl(_) | NodeKind::ConstantDecl(_) => {}
|
||||
|
||||
@@ -441,9 +441,9 @@ impl<'a> Resolver<'a> {
|
||||
let sym_id = self.define_local(param.name, param.span.clone(), SymbolKind::Local);
|
||||
if let (Some(tid), Some(sid)) = (ty_id, sym_id) {
|
||||
self.type_facts.set_symbol_type(sid, tid);
|
||||
// O node do Ident do parâmetro na declaração também pode ser vinculado
|
||||
// Mas o ParamNodeArena não tem um NodeId direto no AST que represente o Ident do parâmetro.
|
||||
// O `param.name` é NameId.
|
||||
// The Ident node of the parameter in the declaration could also be bound
|
||||
// But ParamNodeArena does not have a direct NodeId in the AST that represents the parameter's Ident.
|
||||
// `param.name` is a NameId.
|
||||
}
|
||||
}
|
||||
if let Some(ret) = n.ret {
|
||||
|
||||
Reference in New Issue
Block a user