summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_editor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #61389 from snailrhymer/lookup-fixRémi Verschelde2022-05-251-2/+4
|\
| * Make Lookup Symbol recognize assert and preload in the script editorSnailRhymer2022-05-251-2/+4
| |
* | Fix lookup_code to properly handle symbols at start of assignmentsSnailRhymer2022-05-251-0/+1
|/
* Add a new HashSet templatereduz2022-05-201-2/+2
| | | | | * Intended to replace RBSet in most cases. * Optimized for iteration speed
* Replace most uses of Map by HashMapreduz2022-05-161-22/+22
| | | | | | | | | | | | * Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
* Fix signal completion in GDScript editorYuri Rubinsky2022-05-121-0/+15
|
* Add a new HashMap implementationreduz2022-05-121-16/+12
| | | | | | | | | | | | | | | | | Adds a new, cleaned up, HashMap implementation. * Uses Robin Hood Hashing (https://en.wikipedia.org/wiki/Hash_table#Robin_Hood_hashing). * Keeps elements in a double linked list for simpler, ordered, iteration. * Allows keeping iterators for later use in removal (Unlike Map<>, it does not do much for performance vs keeping the key, but helps replace old code). * Uses a more modern C++ iterator API, deprecates the old one. * Supports custom allocator (in case there is a wish to use a paged one). This class aims to unify all the associative template usage and replace it by this one: * Map<> (whereas key order does not matter, which is 99% of cases) * HashMap<> * OrderedHashMap<> * OAHashMap<>
* Remove `RES` and `REF` typedefs in favor of spelled out `Ref<>`Hugo Locurcio2022-05-031-1/+1
| | | | | | These typedefs don't save much typing compared to the full `Ref<Resource>` and `Ref<RefCounted>`, yet they sometimes introduce confusion among new contributors.
* Fix cppcheck const parametersMarkus Sauermann2022-04-281-1/+1
| | | | | | | | | | Convert method signature parameters to const where it is possible # Conflicts: # drivers/gles3/rasterizer_canvas_gles3.cpp # drivers/gles3/rasterizer_canvas_gles3.h # editor/plugins/animation_state_machine_editor.cpp # editor/plugins/animation_state_machine_editor.h
* Add built-in Variant types to autocompletion listDavid Maziarka2022-04-071-11/+16
| | | | Co-authored-by: Gustav <gusan092@student.liu.se>
* GDScript: Add support for static method calls in native typesGeorge Marques2022-04-061-16/+19
|
* Merge pull request #59633 from EricEzaM/better-code-complete-updateRémi Verschelde2022-04-031-23/+116
|\ | | | | Improve sorting of Code Completion options.
| * Improve sorting of Code Completion options.Eric M2022-04-011-23/+116
| | | | | | | | Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
* | Fix autocompletion of static methods in built-in types in GDScriptYuri Roubinsky2022-03-301-16/+71
| |
* | Refactor GDScript/C# script templates logic to be editor-onlyRémi Verschelde2022-03-281-12/+7
|/ | | | | Not a full refactor as it still goes through ScriptLanguage so it's hacky, but at least it can now compile without this.
* Merge pull request #59553 from reduz/script-extension-supportRémi Verschelde2022-03-281-102/+102
|\
| * Add GDExtension support to Scriptreduz2022-03-271-102/+102
| | | | | | | | | | | | | | | | | | * Ability to create script languages from GDExtension * Some additions to gdnative_extension.h to make this happen * Moved the GDExtension binder to core This now allows creating scripting languages from GDExtension, with the same ease as if it was a module. It replaces the old PluginScript from Godot 3.x. Warning: GodotCPP will need to be updated to support this (it may be a bit of work as ScriptInstance needs to be created over there again).
* | Revert "Sort autocomplete/code completion options in a better way"Juan Linietsky2022-03-281-118/+23
| |
* | Merge pull request #59612 from YeldhamDev/style_and_graceRémi Verschelde2022-03-281-0/+7
|\ \
| * | Make script templates follow the GDScript style guideMichael Alexsander2022-03-281-0/+7
| |/
* / Improve sorting of Code Completion options.Eric M2022-03-241-23/+118
|/ | | | Done by ordering options by their location in the code - e.g. local, parent class, global, etc.
* Remove duplicate editor settings definitionskobewi2022-03-061-3/+3
|
* Fixes cyclic detection from variables assigning themselves to themselves in ↵SaracenOne2022-02-221-0/+29
| | | | autocomplete, and restricts initialization of variables from other variables which have not been declared above it in class body
* Refactor some object type checking code with `cast_to`Rémi Verschelde2022-02-081-8/+8
| | | | Less stringly typed logic, and less String allocations and comparisons.
* Merge pull request #57591 from vnen/gdscript-enum-fixesRémi Verschelde2022-02-041-1/+1
|\
| * GDScript: Consolidate behavior for assigning enum typesGeorge Marques2022-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | This makes sure that assigning values to enum-typed variables are consistent. Same enum is always valid, different enum is always invalid (without casting) and assigning `int` creates a warning if there is no casting. There are new test cases to ensure this behavior doesn't break in the future.
* | String: Add contains().Anilforextra2022-02-041-7/+7
|/
* Merge pull request #56268 from KoBeWi/🚗complete_settersRémi Verschelde2022-01-131-2/+1
|\
| * Remove autocomplete_setters_and_getters settingkobewi2021-12-271-2/+1
| |
* | Merge pull request #56326 from NNesh/fix/unknown_default_value_callableRémi Verschelde2022-01-101-6/+44
|\ \ | | | | | | Extended the _make_arguments_hint function to get default values for function arguments in hint
| * | Fixed <unknown> text for callable default value for a function arguments hintNNesh2022-01-101-6/+44
| |/ | | | | | | | | | | | | | | | | | | | | | | Format switch Added a case for constant subscripts Fixed default value hinting for the enum type Removed is_null checking for value Added a case for dictionary
* | Merge pull request #55213 from Scony/fix-gdscript-crashRémi Verschelde2022-01-061-0/+4
|\ \
| * | Fix godot crash on null expression, fixes #53862Pawel Lampe2021-11-211-0/+4
| | |
* | | Merge pull request #56483 from vnen/gdscript-warning-annotationRémi Verschelde2022-01-051-0/+5
|\ \ \ | | | | | | | | Add annotation to ignore warnings
| * | | GDScript: Add annotation to ignore warningsGeorge Marques2022-01-041-0/+5
| | |/ | |/|
* | | Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | | | | | | | | | Happy new year to the wonderful Godot community!
* | | Improve editor template workflowfabriceci2022-01-021-57/+34
|/ / | | | | | | Co-Authored-By: jmb462 <jmb462@gmail.com>
* | Fix "Lookup Symbol" on global class memberscdemirer2021-12-101-0/+1
| | | | | | | | "Lookup Symbol" on global class members now does switch to the relevant script.
* | Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-2/+2
|/ | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Fix autocompletion of built-in functions in GDScriptYuri Roubinsky2021-10-111-1/+14
|
* GDScript completion: Handle quote style ad-hoc to remove editor dependencyRémi Verschelde2021-10-041-11/+17
| | | | | | | | `core` and `scene` shouldn't depend on `editor`, so they can't query this style setting in `get_argument_options`. But we can handle it after the fact in GDScript's completion code. Also cleans up a couple extra unused invalid includes in `core`.
* Use range iterators for `Map`Lightning_A2021-09-301-19/+19
|
* Merge pull request #52800 from akien-mga/gdscript-remove-exp_rangeRémi Verschelde2021-09-291-1/+1
|\
| * GDScript: Remove reference to remove `@export_exp_range`Rémi Verschelde2021-09-171-1/+1
| | | | | | | | | | It was removed in 75688772b3efadb8a36b1bb7ccde9c08819bc58e to be replaced by `@export_range` with an `"exp"` hint string.
* | Prevent local constant default value from incorrect override by a globalYuri Roubinsky2021-09-211-0/+3
|/
* Merge pull request #52362 from vnen/gdscript-lambda-completion-crashRémi Verschelde2021-09-131-1/+1
|\ | | | | GDScript: Do not complete lambda arguments from parent class
| * GDScript: Do not complete lambda arguments from parent classGeorge Marques2021-09-021-1/+1
| | | | | | | | | | Since lambdas are not overriding methods from the parent class, they should not try to check inheritance for signature matching.
* | Show help for built-in functions (@GlobalScope)William Deurwaarder2021-08-301-0/+9
|/
* Use OrderedHashMap for autoloads to preserve orderLyuma2021-08-261-14/+14
|
* Remove underscore hacksMax Hilbrunner2021-08-171-30/+13
| | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>