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)>>,
// 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)>>
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<CodeMap>) -> ParseSess[src]
pub fn with_span_handler(handler: Handler, code_map: Lrc<CodeMap>) -> ParseSesspub fn codemap(&self) -> &CodeMap[src]
pub fn codemap(&self) -> &CodeMap