mirror of
https://codeberg.org/ProgramSnail/lang_2023.git
synced 2025-12-25 00:08:44 +00:00
first iteration of find_symbols_visitor
This commit is contained in:
parent
87bd815bbb
commit
399631b9ca
13 changed files with 92065 additions and 92399 deletions
|
|
@ -247,8 +247,8 @@ void PrintVisitor::Visit(TypeDefinition* node) {
|
|||
out_ << ' ';
|
||||
}
|
||||
|
||||
void PrintVisitor::Visit(DefinitionParameter* node) {
|
||||
out_ << "[DefinitionParameter ";
|
||||
void PrintVisitor::Visit(AnyAnnotatedType* node) {
|
||||
out_ << "[Annotated (Abstract) Type ";
|
||||
Visit(&node->type);
|
||||
out_ << ']';
|
||||
if (!node->typeclasses.empty() > 0) {
|
||||
|
|
@ -590,19 +590,6 @@ void PrintVisitor::Visit(VariantType* node) {
|
|||
out_ << ')';
|
||||
}
|
||||
|
||||
void PrintVisitor::Visit(AnnotatedType* node) {
|
||||
out_ << "[AnnotatedType ";
|
||||
Visit(node->type_expression.get());
|
||||
out_ << ']';
|
||||
if (!node->annotations.empty()) {
|
||||
out_ << " : (";
|
||||
for (auto& annotation : node->annotations) {
|
||||
Visitor::Visit(annotation);
|
||||
}
|
||||
out_ << ')';
|
||||
}
|
||||
}
|
||||
|
||||
void PrintVisitor::Visit(ParametrizedType* node) {
|
||||
out_ << "[ParametrizedType] (";
|
||||
Visit(node->type_expression.get());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue