godot/modules/gdscript
Andreas Haas 015d36d18b
GDScript: Use "is" keyword for type checking.
Replaces the `extends` keyword with `is` in the context of testing for type compatibility.
`extends` is still used for declaring class inheritance.

Example:

```gdscript
extends Node2D

func _input(ev):
	if ev is InputEventKey:
		print("yay, key event")
```
2017-05-27 10:59:59 +02:00
..
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-17 20:10:46 +02:00
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-01 00:35:16 +01:00
gd_compiler.cpp GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_compiler.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
gd_editor.cpp Removal of InputEvent as built-in Variant type.. 2017-05-20 17:05:38 -03:00
gd_function.cpp GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_function.h Add extended check option to GDFunctionState::is_valid() 2017-05-17 14:55:59 +02:00
gd_functions.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
gd_functions.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
gd_parser.cpp GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_parser.h GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_script.cpp GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_script.h Merge pull request #8420 from magyar123/pr-script-files-as-base 2017-04-24 11:28:36 +02:00
gd_tokenizer.cpp GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
gd_tokenizer.h GDScript: Use "is" keyword for type checking. 2017-05-27 10:59:59 +02:00
register_types.cpp Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00
register_types.h Add "Godot Engine contributors" copyright line 2017-04-08 00:11:42 +02:00