Skip to content

Commit

Permalink
Changing symbols accessible Path
Browse files Browse the repository at this point in the history
  • Loading branch information
notdanilo committed Oct 17, 2023
1 parent 872069d commit fde2953
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 16 deletions.
2 changes: 1 addition & 1 deletion ecosystem/python/parser/src/identifier.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use ligen::symbols::identifier::Identifier;
use ligen::symbols::Identifier;
use ligen::parsing::parser::Parser;
use ligen::parsing::parser::universal::identifier::IdentifierParser as InternalParser;
use crate::prelude::*;
Expand Down
2 changes: 1 addition & 1 deletion ecosystem/python/parser/src/symbols/interface.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::prelude::*;
use rustpython_parser::ast::StmtClassDef;
use ligen::symbols::interface::Interface;
use ligen::symbols::Interface;
use crate::identifier::IdentifierParser;
use crate::symbols::scope::ScopeParser;

Expand Down
4 changes: 2 additions & 2 deletions ecosystem/python/parser/src/symbols/module.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use rustpython_parser::ast::ModModule;
use rustpython_parser::parse;
use ligen::symbols::identifier::Identifier;
use ligen::symbols::module::Module;
use ligen::symbols::Identifier;
use ligen::symbols::Module;
use crate::identifier::IdentifierParser;
use crate::prelude::*;
use crate::symbols::scope::ScopeParser;
Expand Down
4 changes: 2 additions & 2 deletions ecosystem/python/parser/src/symbols/scope.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use rustpython_parser::ast::{Arguments, Expr, Stmt};
use ligen::symbols::identifier::Identifier;
use ligen::symbols::interface::Interface;
use ligen::symbols::Identifier;
use ligen::symbols::Interface;
use crate::identifier::IdentifierParser;
use crate::prelude::*;
use crate::symbols::interface::InterfaceParser;
Expand Down
4 changes: 2 additions & 2 deletions ecosystem/python/parser/src/symbols/scope/scope_type.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use ligen::symbols::interface::Interface;
use ligen::symbols::identifier::Identifier;
use ligen::symbols::Interface;
use ligen::symbols::Identifier;

pub struct Scope {
pub constants: Vec<Identifier>,
Expand Down
10 changes: 7 additions & 3 deletions ligen/symbols/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
pub mod module;
pub mod identifier;
pub mod interface;
mod module;
mod identifier;
mod interface;

pub use module::*;
pub use identifier::*;
pub use interface::*;
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/symbols/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ impl Interface {
Self
}

pub fn show(&mut self, ui: &mut egui::Ui, interface: &mut ligen_symbols::interface::Interface) {
pub fn show(&mut self, ui: &mut egui::Ui, interface: &mut ligen_symbols::Interface) {
ui.vertical(|ui| {
Identifier::new().show(ui, &mut interface.identifier);
EditableList::new("Constants", "Add constant").show(ui, &mut interface.constants, |ui, constant| {
Expand Down
4 changes: 2 additions & 2 deletions tools/editor/src/gui/ui/layout/editor/symbols/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ use crate::gui::ui::panes::Pane;

#[derive(Default)]
pub struct Editor {
module: ligen_symbols::module::Module
module: ligen_symbols::Module
}

impl Editor {
pub fn new(module: ligen_symbols::module::Module) -> Self {
pub fn new(module: ligen_symbols::Module) -> Self {
Self { module }
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/symbols/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ impl Module {
Self
}

pub fn show(&mut self, ui: &mut egui::Ui, module: &mut ligen_symbols::module::Module) {
pub fn show(&mut self, ui: &mut egui::Ui, module: &mut ligen_symbols::Module) {
CollapsingHeader::new(format!("{} - Symbols: {}", module.identifier, module.count_symbols()))
.id_source("module")
.show(ui, |ui| {
Expand Down
2 changes: 1 addition & 1 deletion tools/editor/src/gui/ui/layout/editor/symbols/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ impl Project {
Self
}

pub fn show(&mut self, ui: &mut egui::Ui, module: &mut ligen_symbols::module::Module) {
pub fn show(&mut self, ui: &mut egui::Ui, module: &mut ligen_symbols::Module) {
egui::ScrollArea::both()
.auto_shrink([false, true])
.show(ui, |ui| {
Expand Down

0 comments on commit fde2953

Please sign in to comment.