|
Blender V5.3
|
#include <token.hh>
Inherits lexit::Token.
Public Member Functions | |
| Token (const lexit::Token &tok) | |
| Token (const ParserBase &data, int64_t index) | |
| Token (const ParserBase &data) | |
| Token | prev (int i=1) const |
| Token | next (int i=1) const |
| Token | find_next (TokenType type) const |
| Token | namespace_start () const |
| std::string | full_symbol_name () const |
| Scope | scope () const |
| size_t | str_index_start () const |
| size_t | str_index_last () const |
| size_t | str_index_last_no_whitespace () const |
| size_t | line_start () const |
| size_t | line_end () const |
| std::string_view | str_with_whitespace () const |
| std::string_view | str () const |
| size_t | line_number (bool at_end=false) const |
| size_t | char_number () const |
| std::string | filename () const |
| std::string | line_str () const |
| TokenType | type () const |
| Scope | attribute_before () const |
| Scope | attribute_after () const |
| bool | operator== (TokenType type) const |
| bool | operator!= (TokenType type) const |
| bool | operator== (char type) const |
| bool | operator!= (char type) const |
| Public Member Functions inherited from lexit::Token | |
| Token (const TokenBuffer *buf, int32_t index) | |
| operator int32_t () const | |
| bool | is_valid () const |
| bool | is_invalid () const |
| const TokenType & | type () const |
| const TokenAtom & | atom () const |
| std::string_view | str () const |
| std::string_view | str_with_whitespace () const |
| bool | followed_by_whitespace () const |
| Token | next (int i=1) const |
| Token | prev (int i=1) const |
Additional Inherited Members | |
| Static Public Member Functions inherited from lexit::Token | |
| static Token | invalid (const TokenBuffer *buf) |
| Public Attributes inherited from lexit::Token | |
| const TokenBuffer * | buf_ |
| int32_t | index_ |
| int32_t | flag = 0 |
Semantic token adding access to ParserBase data. It is also safer than lexit::Token as invalid token will not result invalid behavior.
|
inline |
Definition at line 23 of file token.hh.
References Token().
Referenced by attribute_after(), attribute_before(), find_next(), namespace_start(), next(), prev(), Token(), Token(), and Token().
|
inline |
Definition at line 25 of file token.hh.
References blender::data, and Token().
|
inline |
Definition at line 27 of file token.hh.
References blender::data, and Token().
| Scope blender::gpu::shader::parser::Token::attribute_after | ( | ) | const |
Definition at line 120 of file intermediate.cc.
References blender::gpu::shader::parser::Attributes, lexit::Token::is_invalid(), next(), lexit::Token::next(), Token(), and lexit::Token::type().
| Scope blender::gpu::shader::parser::Token::attribute_before | ( | ) | const |
Definition at line 107 of file intermediate.cc.
References blender::gpu::shader::parser::Attributes, lexit::Token::is_invalid(), prev(), and Token().
|
inline |
Definition at line 136 of file token.hh.
References lexit::Token::buf_, blender::gpu::shader::parser::char_number(), lexit::Token::is_invalid(), lexit::TokenBuffer::str_, and str_index_start().
|
inline |
Definition at line 145 of file token.hh.
References lexit::Token::buf_, blender::gpu::shader::parser::filename(), lexit::Token::is_invalid(), lexit::TokenBuffer::str_, and str_index_start().
Definition at line 38 of file token.hh.
References lexit::Token::is_valid(), next(), lexit::Token::next(), Token(), and type().
|
inline |
Definition at line 67 of file token.hh.
References lexit::Token::buf_, namespace_start(), lexit::TokenBuffer::str_, and str_index_last_no_whitespace().
|
inline |
Definition at line 100 of file token.hh.
References lexit::Token::buf_, lexit::TokenBuffer::str_, and str_index_start().
|
inline |
Definition at line 124 of file token.hh.
References lexit::Token::buf_, lexit::Token::is_invalid(), blender::gpu::shader::parser::line_number(), lexit::TokenBuffer::str_, str_index_last(), and str_index_last_no_whitespace().
|
inline |
Definition at line 93 of file token.hh.
References lexit::Token::buf_, lexit::TokenBuffer::str_, and str_index_start().
|
inline |
Definition at line 154 of file token.hh.
References lexit::Token::buf_, blender::gpu::shader::parser::line_str(), lexit::TokenBuffer::str_, and str_index_start().
|
inline |
Definition at line 48 of file token.hh.
References lexit::Token::is_valid(), lexit::Token::prev(), Token(), and lexit::Word.
Referenced by full_symbol_name().
|
inline |
Definition at line 33 of file token.hh.
References next(), and Token().
Referenced by attribute_after(), find_next(), and next().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Scope blender::gpu::shader::parser::Token::scope | ( | ) | const |
Definition at line 98 of file intermediate.cc.
References lexit::Token::index_, and lexit::Token::is_invalid().
|
inline |
Definition at line 114 of file token.hh.
References lexit::Token::is_invalid(), and str().
Referenced by str().
|
inline |
Definition at line 82 of file token.hh.
References lexit::Token::buf_, lexit::Token::index_, and lexit::TokenBuffer::offsets_.
Referenced by line_number().
|
inline |
Definition at line 87 of file token.hh.
References lexit::Token::buf_, lexit::Token::index_, and lexit::TokenBuffer::offsets_end_.
Referenced by full_symbol_name(), and line_number().
|
inline |
Definition at line 77 of file token.hh.
References lexit::Token::buf_, lexit::Token::index_, and lexit::TokenBuffer::offsets_.
Referenced by char_number(), filename(), line_end(), line_start(), and line_str().
|
inline |
Definition at line 106 of file token.hh.
References lexit::Token::is_invalid(), and str_with_whitespace().
Referenced by str_with_whitespace().
|
inline |
Definition at line 159 of file token.hh.
References lexit::Token::buf_, lexit::Token::index_, lexit::Invalid, lexit::Token::is_invalid(), and lexit::TokenBuffer::types_.
Referenced by find_next(), operator!=(), operator!=(), operator==(), and operator==().