pub enum SwiftSyntaxKind {
Show 132 variants
Whitespace,
Newline,
Comment,
Identifier,
Error,
Eof,
NumberLiteral,
StringLiteral,
CharLiteral,
BooleanLiteral,
Class,
Struct,
Enum,
Protocol,
Extension,
Func,
Var,
Let,
Init,
Deinit,
Subscript,
Typealias,
Import,
If,
Else,
Switch,
Case,
Default,
For,
While,
Repeat,
Do,
Break,
Continue,
Fallthrough,
Return,
Throw,
Try,
Catch,
Finally,
Guard,
Defer,
Public,
Private,
Internal,
Fileprivate,
Open,
Static,
Final,
Override,
Mutating,
Nonmutating,
Lazy,
Weak,
Unowned,
Optional,
Required,
Convenience,
Dynamic,
Infix,
Prefix,
Postfix,
Any,
AnyObject,
Self_,
Type,
Protocol_,
True,
False,
Nil,
As,
Is,
In,
Where,
Associatedtype,
Operator,
Precedencegroup,
Indirect,
Rethrows,
Throws,
Inout,
Plus,
Minus,
Star,
Slash,
Percent,
Equal,
NotEqual,
Less,
Greater,
LessEqual,
GreaterEqual,
LogicalAnd,
LogicalOr,
LogicalNot,
BitAnd,
BitOr,
BitXor,
BitNot,
LeftShift,
RightShift,
Assign,
PlusAssign,
MinusAssign,
StarAssign,
SlashAssign,
PercentAssign,
AndAssign,
OrAssign,
XorAssign,
LeftShiftAssign,
RightShiftAssign,
Question,
QuestionQuestion,
Dot,
Arrow,
Range,
ClosedRange,
LeftParen,
RightParen,
LeftBracket,
RightBracket,
LeftBrace,
RightBrace,
Comma,
Semicolon,
Colon,
At,
Hash,
Dollar,
Underscore,
Backslash,
}Variants§
Whitespace
Newline
Comment
Identifier
Error
Eof
NumberLiteral
StringLiteral
CharLiteral
BooleanLiteral
Class
Struct
Enum
Protocol
Extension
Func
Var
Let
Init
Deinit
Subscript
Typealias
Import
If
Else
Switch
Case
Default
For
While
Repeat
Do
Break
Continue
Fallthrough
Return
Throw
Try
Catch
Finally
Guard
Defer
Public
Private
Internal
Fileprivate
Open
Static
Final
Override
Mutating
Nonmutating
Lazy
Weak
Unowned
Optional
Required
Convenience
Dynamic
Infix
Prefix
Postfix
Any
AnyObject
Self_
Type
Protocol_
True
False
Nil
As
Is
In
Where
Associatedtype
Operator
Precedencegroup
Indirect
Rethrows
Throws
Inout
Plus
Minus
Star
Slash
Percent
Equal
NotEqual
Less
Greater
LessEqual
GreaterEqual
LogicalAnd
LogicalOr
LogicalNot
BitAnd
BitOr
BitXor
BitNot
LeftShift
RightShift
Assign
PlusAssign
MinusAssign
StarAssign
SlashAssign
PercentAssign
AndAssign
OrAssign
XorAssign
LeftShiftAssign
RightShiftAssign
Question
QuestionQuestion
Dot
Arrow
Range
ClosedRange
LeftParen
RightParen
LeftBracket
RightBracket
LeftBrace
RightBrace
Comma
Semicolon
Colon
At
Hash
Dollar
Underscore
Backslash
Trait Implementations§
Source§impl Clone for SwiftSyntaxKind
impl Clone for SwiftSyntaxKind
Source§fn clone(&self) -> SwiftSyntaxKind
fn clone(&self) -> SwiftSyntaxKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwiftSyntaxKind
impl Debug for SwiftSyntaxKind
Source§impl Hash for SwiftSyntaxKind
impl Hash for SwiftSyntaxKind
Source§impl PartialEq for SwiftSyntaxKind
impl PartialEq for SwiftSyntaxKind
Source§impl SyntaxKind for SwiftSyntaxKind
impl SyntaxKind for SwiftSyntaxKind
Source§fn is_trivia(&self) -> bool
fn is_trivia(&self) -> bool
Returns true if this kind represents trivia (whitespace, comments, etc.). Read more
Source§fn is_comment(&self) -> bool
fn is_comment(&self) -> bool
Returns true if this kind represents a comment. Read more
Source§fn is_whitespace(&self) -> bool
fn is_whitespace(&self) -> bool
Returns true if this kind represents whitespace.
Source§fn is_token_type(&self) -> bool
fn is_token_type(&self) -> bool
Returns true if this kind represents a token type. Read more
Source§fn is_element_type(&self) -> bool
fn is_element_type(&self) -> bool
Returns true if this kind represents an element type. Read more
impl Copy for SwiftSyntaxKind
impl Eq for SwiftSyntaxKind
impl StructuralPartialEq for SwiftSyntaxKind
Auto Trait Implementations§
impl Freeze for SwiftSyntaxKind
impl RefUnwindSafe for SwiftSyntaxKind
impl Send for SwiftSyntaxKind
impl Sync for SwiftSyntaxKind
impl Unpin for SwiftSyntaxKind
impl UnwindSafe for SwiftSyntaxKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more