Skip to content

Commit

Permalink
Creating both FullParser and SymbolParser panes when parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Oct 28, 2023
1 parent a54502d commit 9bd8bec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/ir/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl TextPrinter for Interface {
fn print(&self, settings: &Settings, paper: &mut Paper, input: &ligen_ir::Interface) -> &Self {
Visibility::new().print(settings, paper, &input.visibility);
Identifier::new().print(settings, paper, &input.identifier);
SymbolsCount::new().print(settings, paper, &*input);
SymbolsCount::new().print(settings, paper, input);
self
}
}
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/ir/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl TextPrinter for Module {
fn print(&self, settings: &Settings, paper: &mut Paper, input: &Self::Input) -> &Self {
Visibility::new().print(settings, paper, &input.visibility);
Identifier::new().print(settings, paper, &input.identifier);
SymbolsCount::new().print(settings, paper, &*input);
SymbolsCount::new().print(settings, paper, input);
self
}
}
6 changes: 4 additions & 2 deletions tools/editor/src/gui/ui/layout/editor/menu_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ impl MenuButton for EditorMenuButton {

if let Some(entry) = entry {
stacker::grow(1024 * 1024 * 10, || {
let project = PythonParser::symbol().parse(entry.as_path()).unwrap();
panes.new_pane(Box::new(Editor::new(project)));
let symbols = PythonParser::symbol().parse(entry.as_path()).unwrap();
let full = PythonParser::full().parse(entry.as_path()).unwrap();
panes.new_pane(Box::new(Editor::new(symbols)));
panes.new_pane(Box::new(Editor::new(full)));
});
}

Expand Down

0 comments on commit 9bd8bec

Please sign in to comment.