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§
Sourcefn ctor(
self,
source_id: impl Into<i32>,
script_content: impl Into<Il2CppString>,
auto_skip_comments: impl Into<bool>,
)
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
Sourcefn get_current(self) -> Token
fn get_current(self) -> Token
get_Current() overload
Sourcefn fetch_new_token(self) -> Token
fn fetch_new_token(self) -> Token
FetchNewToken() overload
Sourcefn cursor_next(self)
fn cursor_next(self)
CursorNext() overload
Sourcefn cursor_char(self) -> u16
fn cursor_char(self) -> u16
CursorChar() overload
Sourcefn cursor_char_next(self) -> u16
fn cursor_char_next(self) -> u16
CursorCharNext() overload
Sourcefn cursor_matches(self, pattern: impl Into<Il2CppString>) -> bool
fn cursor_matches(self, pattern: impl Into<Il2CppString>) -> bool
CursorMatches(::unity::Il2CppString) overload
Sourcefn cursor_not_eof(self) -> bool
fn cursor_not_eof(self) -> bool
CursorNotEof() overload
Sourcefn is_white_space(self, c: impl Into<u16>) -> bool
fn is_white_space(self, c: impl Into<u16>) -> bool
IsWhiteSpace(u16) overload
Sourcefn skip_white_space(self)
fn skip_white_space(self)
SkipWhiteSpace() overload
Sourcefn read_token(self) -> Token
fn read_token(self) -> Token
ReadToken() overload
Sourcefn 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_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
Sourcefn read_number_token(
self,
from_line: impl Into<i32>,
from_col: impl Into<i32>,
leading_dot: impl Into<bool>,
) -> Token
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
Sourcefn create_single_char_token(
self,
token_type: impl Into<TokenType>,
from_line: impl Into<i32>,
from_col: impl Into<i32>,
) -> Token
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
Sourcefn read_hash_bang(
self,
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
ReadHashBang(i32, i32) overload
Sourcefn read_comment(
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
ReadComment(i32, i32) overload
Sourcefn read_simple_string_token(
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
ReadSimpleStringToken(i32, i32) overload
Sourcefn 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 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
Sourcefn create_name_token(
self,
name: impl Into<Il2CppString>,
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
CreateNameToken(::unity::Il2CppString, i32, i32) overload
Sourcefn create_token(
self,
token_type: impl Into<TokenType>,
from_line: impl Into<i32>,
from_col: impl Into<i32>,
text: impl Into<Il2CppString>,
) -> 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
CreateToken(crate::moon_sharp::interpreter::tree::tokentype::TokenType, i32, i32, ::unity::Il2CppString) overload
Sourcefn read_name_token(self) -> Il2CppString
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§
impl<__T: ILexer> ILexerMethods for __T
moon_sharp-interpreter-tree-lexer only.