Struct syntax::parse::ParseSess  [−][src]
pub struct ParseSess {
    pub span_diagnostic: Handler,
    pub unstable_features: UnstableFeatures,
    pub config: CrateConfig,
    pub missing_fragment_specifiers: Lock<HashSet<Span>>,
    pub raw_identifier_spans: Lock<Vec<Span>>,
    pub non_modrs_mods: Lock<Vec<(Ident, Span)>>,
    pub buffered_lints: Lock<Vec<BufferedEarlyLint>>,
    // some fields omitted
}Info about a parsing session.
Fields
span_diagnostic: Handler
                           
                           
                           
                           unstable_features: UnstableFeatures
                           
                           
                           
                           config: CrateConfig
                           
                           
                           
                           missing_fragment_specifiers: Lock<HashSet<Span>>
                           
                           
                           
                           raw_identifier_spans: Lock<Vec<Span>>
                           Places where raw identifiers were used. This is used for feature gating raw identifiers
non_modrs_mods: Lock<Vec<(Ident, Span)>>
                           
                           
                           
                           buffered_lints: Lock<Vec<BufferedEarlyLint>>
                           
                    Methods
impl ParseSess[src] 
impl ParseSesspub fn new(file_path_mapping: FilePathMapping) -> Self[src] 
pub fn new(file_path_mapping: FilePathMapping) -> Selfpub fn with_span_handler(
    handler: Handler, 
    code_map: Lrc<SourceMap>
) -> ParseSess[src] 
pub fn with_span_handler(
    handler: Handler, 
    code_map: Lrc<SourceMap>
) -> ParseSesspub fn source_map(&self) -> &SourceMap[src] 
pub fn source_map(&self) -> &SourceMappub fn buffer_lint<S: Into<MultiSpan>>(
    &self, 
    lint_id: BufferedEarlyLintId, 
    span: S, 
    id: NodeId, 
    msg: &str
)[src] 
pub fn buffer_lint<S: Into<MultiSpan>>(
    &self, 
    lint_id: BufferedEarlyLintId, 
    span: S, 
    id: NodeId, 
    msg: &str
)