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 registered_diagnostics: Lock<ErrorMap>, 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
registered_diagnostics: Lock<ErrorMap>
The registered diagnostics codes
non_modrs_mods: Lock<Vec<(Ident, Span)>>
Methods
impl ParseSess
[src]
impl ParseSess
pub fn new(file_path_mapping: FilePathMapping) -> Self
[src]
pub fn new(file_path_mapping: FilePathMapping) -> Self
pub fn with_span_handler(handler: Handler, code_map: Lrc<CodeMap>) -> ParseSess
[src]
pub fn with_span_handler(handler: Handler, code_map: Lrc<CodeMap>) -> ParseSess
pub fn codemap(&self) -> &CodeMap
[src]
pub fn codemap(&self) -> &CodeMap