[][src]Struct syntax::parse::ParseSess

pub struct ParseSess {
    pub span_diagnostic: Handler,
    pub unstable_features: UnstableFeatures,
    pub config: CrateConfig,
    pub missing_fragment_specifiers: Lock<FxHashSet<Span>>,
    pub raw_identifier_spans: Lock<Vec<Span>>,
    pub buffered_lints: Lock<Vec<BufferedEarlyLint>>,
    // some fields omitted
}

Info about a parsing session.

Fields

span_diagnostic: Handlerunstable_features: UnstableFeaturesconfig: CrateConfigmissing_fragment_specifiers: Lock<FxHashSet<Span>>raw_identifier_spans: Lock<Vec<Span>>

Places where raw identifiers were used. This is used for feature gating raw identifiers

buffered_lints: Lock<Vec<BufferedEarlyLint>>

Methods

impl ParseSess[src]

pub fn new(file_path_mapping: FilePathMapping) -> Self[src]

pub fn with_span_handler(
    handler: Handler,
    source_map: Lrc<SourceMap>
) -> ParseSess
[src]

pub fn source_map(&self) -> &SourceMap[src]

pub fn buffer_lint<S: Into<MultiSpan>>(
    &self,
    lint_id: BufferedEarlyLintId,
    span: S,
    id: NodeId,
    msg: &str
)
[src]

Auto Trait Implementations

impl !Send for ParseSess

impl !Sync for ParseSess

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<E> SpecializationError for E[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Erased for T