|
LLDB mainline
|
#include "tree_sitter/alloc.h"#include "tree_sitter/parser.h"#include <wctype.h>Go to the source code of this file.
Classes | |
| struct | Scanner |
| struct | BlockCommentProcessing |
Enumerations | |
| enum | TokenType { STRING_CONTENT , RAW_STRING_LITERAL_START , RAW_STRING_LITERAL_CONTENT , RAW_STRING_LITERAL_END , FLOAT_LITERAL , BLOCK_OUTER_DOC_MARKER , BLOCK_INNER_DOC_MARKER , BLOCK_COMMENT_CONTENT , LINE_DOC_CONTENT , ERROR_SENTINEL } |
| enum | BlockCommentState { LeftForwardSlash , LeftAsterisk , Continuing } |
Functions | |
| void * | tree_sitter_rust_external_scanner_create () |
| void | tree_sitter_rust_external_scanner_destroy (void *payload) |
| unsigned | tree_sitter_rust_external_scanner_serialize (void *payload, char *buffer) |
| void | tree_sitter_rust_external_scanner_deserialize (void *payload, const char *buffer, unsigned length) |
| static bool | is_num_char (int32_t c) |
| static void | advance (TSLexer *lexer) |
| static void | skip (TSLexer *lexer) |
| static bool | process_string (TSLexer *lexer) |
| static bool | scan_raw_string_start (Scanner *scanner, TSLexer *lexer) |
| static bool | scan_raw_string_content (Scanner *scanner, TSLexer *lexer) |
| static bool | scan_raw_string_end (Scanner *scanner, TSLexer *lexer) |
| static bool | process_float_literal (TSLexer *lexer) |
| static bool | process_line_doc_content (TSLexer *lexer) |
| static void | process_left_forward_slash (BlockCommentProcessing *processing, char current) |
| static void | process_left_asterisk (BlockCommentProcessing *processing, char current, TSLexer *lexer) |
| static void | process_continuing (BlockCommentProcessing *processing, char current) |
| static bool | process_block_comment (TSLexer *lexer, const bool *valid_symbols) |
| bool | tree_sitter_rust_external_scanner_scan (void *payload, TSLexer *lexer, const bool *valid_symbols) |
| enum BlockCommentState |
| Enumerator | |
|---|---|
| LeftForwardSlash | |
| LeftAsterisk | |
| Continuing | |
Definition at line 203 of file Rust/tree-sitter-rust/scanner.c.
| enum TokenType |
Definition at line 6 of file Rust/tree-sitter-rust/scanner.c.
|
inlinestatic |
Definition at line 44 of file Rust/tree-sitter-rust/scanner.c.
Referenced by process_block_comment(), process_float_literal(), process_line_doc_content(), process_string(), scan_raw_string_content(), scan_raw_string_end(), and scan_raw_string_start().
|
inlinestatic |
Definition at line 42 of file Rust/tree-sitter-rust/scanner.c.
Referenced by process_float_literal().
Definition at line 246 of file Rust/tree-sitter-rust/scanner.c.
References advance(), BLOCK_COMMENT_CONTENT, BLOCK_INNER_DOC_MARKER, BLOCK_OUTER_DOC_MARKER, Continuing, LeftAsterisk, LeftForwardSlash, BlockCommentProcessing::nestingDepth, process_continuing(), process_left_asterisk(), process_left_forward_slash(), and BlockCommentProcessing::state.
Referenced by tree_sitter_rust_external_scanner_scan().
|
inlinestatic |
Definition at line 235 of file Rust/tree-sitter-rust/scanner.c.
References LeftAsterisk, LeftForwardSlash, and BlockCommentProcessing::state.
Referenced by process_block_comment().
|
inlinestatic |
Definition at line 122 of file Rust/tree-sitter-rust/scanner.c.
References advance(), FLOAT_LITERAL, and is_num_char().
Referenced by tree_sitter_rust_external_scanner_scan().
|
inlinestatic |
Definition at line 221 of file Rust/tree-sitter-rust/scanner.c.
References Continuing, LeftAsterisk, BlockCommentProcessing::nestingDepth, and BlockCommentProcessing::state.
Referenced by process_block_comment().
|
inlinestatic |
Definition at line 214 of file Rust/tree-sitter-rust/scanner.c.
References Continuing, BlockCommentProcessing::nestingDepth, and BlockCommentProcessing::state.
Referenced by process_block_comment().
|
inlinestatic |
Definition at line 187 of file Rust/tree-sitter-rust/scanner.c.
References advance(), and LINE_DOC_CONTENT.
Referenced by tree_sitter_rust_external_scanner_scan().
|
inlinestatic |
Definition at line 48 of file Rust/tree-sitter-rust/scanner.c.
References advance(), and STRING_CONTENT.
Referenced by tree_sitter_rust_external_scanner_scan().
Definition at line 90 of file Rust/tree-sitter-rust/scanner.c.
References advance(), Scanner::opening_hash_count, and RAW_STRING_LITERAL_CONTENT.
Referenced by tree_sitter_rust_external_scanner_scan().
Definition at line 113 of file Rust/tree-sitter-rust/scanner.c.
References advance(), Scanner::opening_hash_count, and RAW_STRING_LITERAL_END.
Referenced by tree_sitter_rust_external_scanner_scan().
Definition at line 65 of file Rust/tree-sitter-rust/scanner.c.
References advance(), Scanner::opening_hash_count, and RAW_STRING_LITERAL_START.
Referenced by tree_sitter_rust_external_scanner_scan().
|
inlinestatic |
Definition at line 46 of file Rust/tree-sitter-rust/scanner.c.
Referenced by lldb_private::Target::CreateFuncRegexBreakpoint(), CommandObjectTraceDumpInstructions::CommandOptions::SetOptionValue(), and tree_sitter_rust_external_scanner_scan().
| void * tree_sitter_rust_external_scanner_create | ( | ) |
Definition at line 23 of file Rust/tree-sitter-rust/scanner.c.
| void tree_sitter_rust_external_scanner_deserialize | ( | void * | payload, |
| const char * | buffer, | ||
| unsigned | length ) |
Definition at line 33 of file Rust/tree-sitter-rust/scanner.c.
References Scanner::opening_hash_count.
| void tree_sitter_rust_external_scanner_destroy | ( | void * | payload | ) |
Definition at line 25 of file Rust/tree-sitter-rust/scanner.c.
| bool tree_sitter_rust_external_scanner_scan | ( | void * | payload, |
| TSLexer * | lexer, | ||
| const bool * | valid_symbols ) |
Definition at line 334 of file Rust/tree-sitter-rust/scanner.c.
References BLOCK_COMMENT_CONTENT, BLOCK_INNER_DOC_MARKER, BLOCK_OUTER_DOC_MARKER, ERROR_SENTINEL, FLOAT_LITERAL, LINE_DOC_CONTENT, process_block_comment(), process_float_literal(), process_line_doc_content(), process_string(), RAW_STRING_LITERAL_CONTENT, RAW_STRING_LITERAL_END, RAW_STRING_LITERAL_START, scan_raw_string_content(), scan_raw_string_end(), scan_raw_string_start(), skip(), and STRING_CONTENT.
| unsigned tree_sitter_rust_external_scanner_serialize | ( | void * | payload, |
| char * | buffer ) |
Definition at line 27 of file Rust/tree-sitter-rust/scanner.c.
References Scanner::opening_hash_count.