Commit Graph

119 Commits

Author SHA1 Message Date
Deukhoofd dbc7b4eb4f
Add warnings when variable types are unknown 2018-11-28 12:11:09 +01:00
Deukhoofd 7ee230e20c
Handle warnings, and add a warning if a function parameter has an unknown type 2018-11-28 10:56:35 +01:00
Deukhoofd 14e30d0855
Support for getting a bound scope at a specific character position 2018-11-27 19:04:58 +01:00
Deukhoofd 8ece53db5b
Reworked handling of getting bottom node. Now uses an iterator to iterate from bottom to top nodes 2018-11-27 18:38:28 +01:00
Deukhoofd dd8569ecb0
Fixes diagnostics breaking when using ContinueWith function 2018-11-27 17:40:54 +01:00
Deukhoofd 0279859637
Fixes binary operators not properly handling indexers 2018-11-27 17:40:35 +01:00
Deukhoofd 160ed60cc2
Fix index error on userdata 2018-11-27 17:40:13 +01:00
Deukhoofd 16e1cde5c6
More work on binding table variables 2018-11-27 15:49:44 +01:00
Deukhoofd a0861e090f
Work on type checking variables when getting them from tables 2018-11-27 14:37:58 +01:00
Deukhoofd dca8773e54
Allow accessing variables inside a table from the variable symbol 2018-11-27 14:15:45 +01:00
Deukhoofd 8b08aea404
Dont save data comments if disabled through options 2018-11-27 12:35:20 +01:00
Deukhoofd b7d01b02f1
Exception throwing when required, and fixes for unit tests 2018-11-26 17:23:56 +01:00
Deukhoofd 74da87d936
Work on new execution start path 2018-11-26 16:55:10 +01:00
Deukhoofd 15ce180b8c
Allow assigning comment info to all variables 2018-11-26 15:05:20 +01:00
Deukhoofd 963245c9e7
Support for storing comments about specific variables 2018-11-26 14:50:46 +01:00
Deukhoofd a66b1abbf5
Better comments 2018-11-26 13:59:57 +01:00
Deukhoofd e02eb39753
Support for comments 2018-11-26 13:42:50 +01:00
Deukhoofd 2ee8170f74
Fix infinite loop with functions calls 2018-11-25 22:06:20 +01:00
Deukhoofd 2111f4080c
Fixes string not checking if it ends with a quotation mark 2018-11-25 22:05:01 +01:00
Deukhoofd 8f91b7f550
Fixes infinite loop in parsing blocks 2018-11-25 21:50:18 +01:00
Deukhoofd 55206f3807
Changed function variable declarations to BoundVariableSymbols 2018-11-25 21:44:03 +01:00
Deukhoofd d4fc24b389
Fixes Source Text length being off by the length of a newline 2018-11-25 21:18:58 +01:00
Deukhoofd 5f9c32874a
Diagnostic for invalid number of parameters 2018-11-25 20:55:36 +01:00
Deukhoofd 6bb8139f40
Break several while loop if tokens are not consumed 2018-11-25 19:45:10 +01:00
Deukhoofd cae3d7fb53
Lots of work for handling incomplete code and inspections better 2018-11-25 19:30:18 +01:00
Deukhoofd 0b6359f499
Fix broken reference 2018-11-24 15:58:34 +01:00
Deukhoofd cd04486d16
Adds Unary length operator 2018-11-24 15:11:33 +01:00
Deukhoofd 2dc59c5f8b
Adds tostring and type functions 2018-11-24 14:49:20 +01:00
Deukhoofd 194e7236c4
Unit tests for ipairs and pairs, as well as changing how they handle null. ipairs now breaks at first nil value, pairs skips it 2018-11-24 14:39:53 +01:00
Deukhoofd 13ac6f2754
Rework for loops to use iterators, requiring pairs or ipairs function to handle multi-assignment 2018-11-24 14:35:23 +01:00
Deukhoofd c63df3c941
Work on standard libraries.
- Allows Standard Libraries to work with actual luatypes, to prevent constant back and forth casting
- adds ipairs function, doesn't do anything except maintain compatibility with lua
- several tests
2018-11-24 13:35:40 +01:00
Deukhoofd 806b3d5689
Fix breaking of most complex expressions 2018-11-24 13:04:21 +01:00
Deukhoofd 9be1cfa1fc
Fixes issue where functions inside binary operators wouldnt work 2018-11-24 12:55:51 +01:00
Deukhoofd 62a18e22d4
Fixed Scoping issue 2018-11-24 12:42:54 +01:00
Deukhoofd 638394d25b
Generic For Loops 2018-11-23 18:18:07 +01:00
Deukhoofd 2db4d0607e
Implements break statement 2018-11-23 15:27:48 +01:00
Deukhoofd d2c14d213c
Add Numeric For Loops 2018-11-23 14:38:45 +01:00
Deukhoofd 1928979b40
More unit tests 2018-11-23 13:34:46 +01:00
Deukhoofd 8d6d6e45af
Handle lua -> C# function invocation exceptions more gracefully 2018-11-23 13:34:21 +01:00
Deukhoofd d6e18d9b0c
Better handling of Static Scope 2018-11-23 13:28:11 +01:00
Deukhoofd 95f76bc5e3
Minor performance tweak to handle LuaType casting better if type is already a LuaType 2018-11-23 13:24:41 +01:00
Deukhoofd ea24695128
Fixes binder assigning values to static read only scope 2018-11-23 13:18:49 +01:00
Deukhoofd aae16e8b62
General fixes for Tests 2018-11-23 12:55:28 +01:00
Deukhoofd 1e9b0e0166
Some initial work on standard libraries 2018-11-21 20:59:27 +01:00
Deukhoofd 68830a1676
Don't bind/evaluate variable value if the name is just an underscore 2018-11-21 17:25:12 +01:00
Deukhoofd 4ab755d0d2
Support for assigning multiple variables from a table 2018-11-21 17:18:35 +01:00
Deukhoofd 105c40bc05
Special UserData types for ILists(includes arrays) and IDictionaries 2018-11-21 14:49:59 +01:00
Deukhoofd 1d24be85d6
Better error handling of getting userdata members 2018-11-21 14:11:52 +01:00
Deukhoofd 8dd2be8c67
Better error handling for setting userdata values 2018-11-21 14:04:43 +01:00
Deukhoofd 605b98284d
Handle Unary operator overloading for UserData 2018-11-21 13:54:41 +01:00