pub type SyntaxObject = RawSyntaxObject<TokenType<InternedString>>;Aliased Type§
pub struct SyntaxObject {
pub ty: TokenType<InternedString>,
pub span: Span,
pub syntax_object_id: SyntaxObjectId,
pub unresolved: bool,
pub introduced_via_macro: bool,
}Fields§
§ty: TokenType<InternedString>§span: Span§syntax_object_id: SyntaxObjectId§unresolved: bool§introduced_via_macro: boolImplementations§
Source§impl SyntaxObject
impl SyntaxObject
pub fn new(ty: TokenType<InternedString>, span: Span) -> Self
pub fn default(ty: TokenType<InternedString>) -> Self
pub fn set_span(&mut self, span: Span)
pub fn from_token_with_source( val: &Token<'_, InternedString>, _source: &Option<Rc<PathBuf>>, ) -> Self
Trait Implementations§
Source§impl From<&Token<'_, InternedString>> for SyntaxObject
impl From<&Token<'_, InternedString>> for SyntaxObject
Source§fn from(val: &Token<'_, InternedString>) -> SyntaxObject
fn from(val: &Token<'_, InternedString>) -> SyntaxObject
Converts to this type from the input type.