Struct makepad_shader_compiler::shader_ast::Scopes
source · pub struct Scopes {
pub scopes: Vec<Scope>,
pub closure_scopes: RefCell<HashMap<ClosureDefIndex, Vec<Scope>>>,
pub closure_sites: RefCell<Vec<ClosureSite>>,
}
Fields§
§scopes: Vec<Scope>
§closure_scopes: RefCell<HashMap<ClosureDefIndex, Vec<Scope>>>
§closure_sites: RefCell<Vec<ClosureSite>>
Implementations§
source§impl Scopes
impl Scopes
pub fn new() -> Scopes
pub fn find_sym_on_scopes( &self, ident: Ident, _span: TokenSpan ) -> Option<&ScopeSym>
pub fn capture_closure_scope(&self, index: ClosureDefIndex)
pub fn push_scope(&mut self)
pub fn pop_scope(&mut self)
pub fn clear_referenced_syms(&self)
pub fn all_referenced_syms(&self) -> Vec<Sym>
pub fn insert_sym( &mut self, span: TokenSpan, ident: Ident, ty: Ty, sym_kind: ScopeSymKind ) -> ScopeSymShadow
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scopes
impl !Send for Scopes
impl !Sync for Scopes
impl Unpin for Scopes
impl UnwindSafe for Scopes
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more