godot/modules/gdscript/gdscript_tokenizer.cpp

/**************************************************************************/
/*  gdscript_tokenizer.cpp                                                */
/**************************************************************************/
/*                         This file is part of:                          */
/*                             GODOT ENGINE                               */
/*                        https://godotengine.org                         */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur.                  */
/*                                                                        */
/* Permission is hereby granted, free of charge, to any person obtaining  */
/* a copy of this software and associated documentation files (the        */
/* "Software"), to deal in the Software without restriction, including    */
/* without limitation the rights to use, copy, modify, merge, publish,    */
/* distribute, sublicense, and/or sell copies of the Software, and to     */
/* permit persons to whom the Software is furnished to do so, subject to  */
/* the following conditions:                                              */
/*                                                                        */
/* The above copyright notice and this permission notice shall be         */
/* included in all copies or substantial portions of the Software.        */
/*                                                                        */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,        */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF     */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY   */
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,   */
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE      */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                 */
/**************************************************************************/

#include "gdscript_tokenizer.h"

#include "core/error/error_macros.h"
#include "core/string/char_utils.h"

#ifdef DEBUG_ENABLED
#include "servers/text_server.h"
#endif

#ifdef TOOLS_ENABLED
#include "editor/editor_settings.h"
#endif

static const char *token_names[] =;

// Avoid desync.
static_assert;

const char *GDScriptTokenizer::Token::get_name() const {}

bool GDScriptTokenizer::Token::can_precede_bin_op() const {}

bool GDScriptTokenizer::Token::is_identifier() const {}

bool GDScriptTokenizer::Token::is_node_name() const {}

String GDScriptTokenizer::get_token_name(Token::Type p_token_type) {}

void GDScriptTokenizerText::set_source_code(const String &p_source_code) {}

void GDScriptTokenizerText::set_cursor_position(int p_line, int p_column) {}

void GDScriptTokenizerText::set_multiline_mode(bool p_state) {}

void GDScriptTokenizerText::push_expression_indented_block() {}

void GDScriptTokenizerText::pop_expression_indented_block() {}

int GDScriptTokenizerText::get_cursor_line() const {}

int GDScriptTokenizerText::get_cursor_column() const {}

bool GDScriptTokenizerText::is_past_cursor() const {}

char32_t GDScriptTokenizerText::_advance() {}

void GDScriptTokenizerText::push_paren(char32_t p_char) {}

bool GDScriptTokenizerText::pop_paren(char32_t p_expected) {}

GDScriptTokenizer::Token GDScriptTokenizerText::pop_error() {}

GDScriptTokenizer::Token GDScriptTokenizerText::make_token(Token::Type p_type) {}

GDScriptTokenizer::Token GDScriptTokenizerText::make_literal(const Variant &p_literal) {}

GDScriptTokenizer::Token GDScriptTokenizerText::make_identifier(const StringName &p_identifier) {}

GDScriptTokenizer::Token GDScriptTokenizerText::make_error(const String &p_message) {}

void GDScriptTokenizerText::push_error(const String &p_message) {}

void GDScriptTokenizerText::push_error(const Token &p_error) {}

GDScriptTokenizer::Token GDScriptTokenizerText::make_paren_error(char32_t p_paren) {}

GDScriptTokenizer::Token GDScriptTokenizerText::check_vcs_marker(char32_t p_test, Token::Type p_double_type) {}

GDScriptTokenizer::Token GDScriptTokenizerText::annotation() {}

#define KEYWORDS

#define MIN_KEYWORD_LENGTH
#define MAX_KEYWORD_LENGTH

#ifdef DEBUG_ENABLED
void GDScriptTokenizerText::make_keyword_list() {}
#endif // DEBUG_ENABLED

GDScriptTokenizer::Token GDScriptTokenizerText::potential_identifier() {}

#undef MAX_KEYWORD_LENGTH
#undef MIN_KEYWORD_LENGTH
#undef KEYWORDS

void GDScriptTokenizerText::newline(bool p_make_token) {}

GDScriptTokenizer::Token GDScriptTokenizerText::number() {}

GDScriptTokenizer::Token GDScriptTokenizerText::string() {}

void GDScriptTokenizerText::check_indent() {}

String GDScriptTokenizerText::_get_indent_char_name(char32_t ch) {}

void GDScriptTokenizerText::_skip_whitespace() {}

GDScriptTokenizer::Token GDScriptTokenizerText::scan() {}

GDScriptTokenizerText::GDScriptTokenizerText() {}