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 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
pub 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
)