Struct kailua_syntax::ast::Chunk
[−]
[src]
pub struct Chunk { pub block: Spanned<Block>, pub map: ScopeMap<Name>, pub global_scope: HashMap<Name, Span>, pub local_names: HashMap<ScopedId, LocalName>, pub token_aux: Vec<TokenAux>, }
The parsed chunk, representing a single source file with associated side informations.
Fields
block: Spanned<Block>
The top-level block.
map: ScopeMap<Name>
An associated scope map for local names.
global_scope: HashMap<Name, Span>
A map from globally assigned names to spans to their first occurrences.
Global names that has been used are not recorded.
local_names: HashMap<ScopedId, LocalName>
A map from local names (in the form of scoped identifiers) to the resolved information.
token_aux: Vec<TokenAux>
Auxiliary informations for each input token (including Tok::EOF
), in the order.
Trait Implementations
impl Clone for Chunk
[src]
fn clone(&self) -> Chunk
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more