Skip to main content

ILexerMethods

Trait ILexerMethods 

Source
pub trait ILexerMethods: ILexer {
Show 23 methods // Provided methods fn ctor( self, source_id: impl Into<i32>, script_content: impl Into<Il2CppString>, auto_skip_comments: impl Into<bool>, ) { ... } fn get_current(self) -> Token { ... } fn fetch_new_token(self) -> Token { ... } fn next(self) { ... } fn peek_next(self) -> Token { ... } fn cursor_next(self) { ... } fn cursor_char(self) -> u16 { ... } fn cursor_char_next(self) -> u16 { ... } fn cursor_matches(self, pattern: impl Into<Il2CppString>) -> bool { ... } fn cursor_not_eof(self) -> bool { ... } fn is_white_space(self, c: impl Into<u16>) -> bool { ... } fn skip_white_space(self) { ... } fn read_token(self) -> Token { ... } fn read_long_string( self, from_line: impl Into<i32>, from_col: impl Into<i32>, startpattern: impl Into<Il2CppString>, subtypeforerrors: impl Into<Il2CppString>, ) -> Il2CppString { ... } fn read_number_token( self, from_line: impl Into<i32>, from_col: impl Into<i32>, leading_dot: impl Into<bool>, ) -> Token { ... } fn create_single_char_token( self, token_type: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn read_hash_bang( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn read_comment( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn read_simple_string_token( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn potentially_double_char_operator( self, expected_second_char: impl Into<u16>, single_char_token: impl Into<TokenType>, double_char_token: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn create_name_token( self, name: impl Into<Il2CppString>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token { ... } fn create_token( self, token_type: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, text: impl Into<Il2CppString>, ) -> Token { ... } fn read_name_token(self) -> Il2CppString { ... }
}

Provided Methods§

Source

fn ctor( self, source_id: impl Into<i32>, script_content: impl Into<Il2CppString>, auto_skip_comments: impl Into<bool>, )

.ctor(i32, ::unity::Il2CppString, bool) overload

Source

fn get_current(self) -> Token

get_Current() overload

Source

fn fetch_new_token(self) -> Token

FetchNewToken() overload

Source

fn next(self)

Next() overload

Source

fn peek_next(self) -> Token

PeekNext() overload

Source

fn cursor_next(self)

CursorNext() overload

Source

fn cursor_char(self) -> u16

CursorChar() overload

Source

fn cursor_char_next(self) -> u16

CursorCharNext() overload

Source

fn cursor_matches(self, pattern: impl Into<Il2CppString>) -> bool

CursorMatches(::unity::Il2CppString) overload

Source

fn cursor_not_eof(self) -> bool

CursorNotEof() overload

Source

fn is_white_space(self, c: impl Into<u16>) -> bool

IsWhiteSpace(u16) overload

Source

fn skip_white_space(self)

SkipWhiteSpace() overload

Source

fn read_token(self) -> Token

ReadToken() overload

Source

fn read_long_string( self, from_line: impl Into<i32>, from_col: impl Into<i32>, startpattern: impl Into<Il2CppString>, subtypeforerrors: impl Into<Il2CppString>, ) -> Il2CppString

ReadLongString(i32, i32, ::unity::Il2CppString, ::unity::Il2CppString) overload

Source

fn read_number_token( self, from_line: impl Into<i32>, from_col: impl Into<i32>, leading_dot: impl Into<bool>, ) -> Token

ReadNumberToken(i32, i32, bool) overload

Source

fn create_single_char_token( self, token_type: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

CreateSingleCharToken(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32) overload

Source

fn read_hash_bang( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

ReadHashBang(i32, i32) overload

Source

fn read_comment( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

ReadComment(i32, i32) overload

Source

fn read_simple_string_token( self, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

ReadSimpleStringToken(i32, i32) overload

Source

fn potentially_double_char_operator( self, expected_second_char: impl Into<u16>, single_char_token: impl Into<TokenType>, double_char_token: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

PotentiallyDoubleCharOperator(u16, crate::moon_sharp::interpreter::tree::tokentype::TokenType, crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32) overload

Source

fn create_name_token( self, name: impl Into<Il2CppString>, from_line: impl Into<i32>, from_col: impl Into<i32>, ) -> Token

CreateNameToken(::unity::Il2CppString, i32, i32) overload

Source

fn create_token( self, token_type: impl Into<TokenType>, from_line: impl Into<i32>, from_col: impl Into<i32>, text: impl Into<Il2CppString>, ) -> Token

CreateToken(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32, ::unity::Il2CppString) overload

Source

fn read_name_token(self) -> Il2CppString

ReadNameToken() overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ILexer> ILexerMethods for __T

Available on crate feature moon_sharp-interpreter-tree-lexer only.