Commit Graph

140 Commits

Author SHA1 Message Date
f08d1c2541 Reworked function handling, support for type checking internal CSharp functions 2018-11-30 15:28:36 +01:00
81a6b05b26 Actually pass script reference if requested 2018-11-30 12:09:06 +01:00
1243492453 Adds comments to basic library functions 2018-11-30 12:07:18 +01:00
1f1b8c621e changed parameters for require function 2018-11-30 11:51:22 +01:00
9e27778af1 Support for passing Script reference to functions. useful when options are required for function 2018-11-30 11:31:45 +01:00
3a3ed071d2 Move ScriptFunctions to own namespace 2018-11-30 11:15:52 +01:00
9455b753a0 Resolved UserData not binding proper type when multiple index expressions are chained 2018-11-30 11:12:10 +01:00
a4ad57e3f7 Better support for userdata bound types 2018-11-29 20:45:59 +01:00
4fa0ad9f70 Log error if using full stop indexer on userdata type when the indexer doesn't exist 2018-11-29 19:10:03 +01:00
f983239b5a Bind indexing of userdata 2018-11-29 18:09:08 +01:00
c1f4c8fb37 Fixes tests 2018-11-28 21:28:01 +01:00
af0ff235e1 Fixes script --> C# function calls not working 2018-11-28 21:23:08 +01:00
babbf2875f Type check when calling script function from CSharp 2018-11-28 20:53:45 +01:00
ba82b28ee4 Validate function call parameter types 2018-11-28 16:47:52 +01:00
a64df2ff6b Add spans to parameterTokens 2018-11-28 16:23:45 +01:00
27a7465961 Adds basics for predefined function parameter types 2018-11-28 16:18:56 +01:00
062f0f84ad Allow for empty return expressions 2018-11-28 14:31:40 +01:00
cefe48cb4b Handle empty return statements 2018-11-28 14:13:39 +01:00
cc029d0689 Handle binding unbound functions later better 2018-11-28 13:36:20 +01:00
576273ac56 Better support for binding functions, specifically nested functions 2018-11-28 13:30:24 +01:00
71397f5db2 Bind return type from a function to a variable 2018-11-28 12:54:18 +01:00
dbc7b4eb4f Add warnings when variable types are unknown 2018-11-28 12:11:09 +01:00
7ee230e20c Handle warnings, and add a warning if a function parameter has an unknown type 2018-11-28 10:56:35 +01:00
14e30d0855 Support for getting a bound scope at a specific character position 2018-11-27 19:04:58 +01:00
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
dd8569ecb0 Fixes diagnostics breaking when using ContinueWith function 2018-11-27 17:40:54 +01:00
0279859637 Fixes binary operators not properly handling indexers 2018-11-27 17:40:35 +01:00
160ed60cc2 Fix index error on userdata 2018-11-27 17:40:13 +01:00
16e1cde5c6 More work on binding table variables 2018-11-27 15:49:44 +01:00
a0861e090f Work on type checking variables when getting them from tables 2018-11-27 14:37:58 +01:00
dca8773e54 Allow accessing variables inside a table from the variable symbol 2018-11-27 14:15:45 +01:00
8b08aea404 Dont save data comments if disabled through options 2018-11-27 12:35:20 +01:00
b7d01b02f1 Exception throwing when required, and fixes for unit tests 2018-11-26 17:23:56 +01:00
74da87d936 Work on new execution start path 2018-11-26 16:55:10 +01:00
15ce180b8c Allow assigning comment info to all variables 2018-11-26 15:05:20 +01:00
963245c9e7 Support for storing comments about specific variables 2018-11-26 14:50:46 +01:00
a66b1abbf5 Better comments 2018-11-26 13:59:57 +01:00
e02eb39753 Support for comments 2018-11-26 13:42:50 +01:00
2ee8170f74 Fix infinite loop with functions calls 2018-11-25 22:06:20 +01:00
2111f4080c Fixes string not checking if it ends with a quotation mark 2018-11-25 22:05:01 +01:00
8f91b7f550 Fixes infinite loop in parsing blocks 2018-11-25 21:50:18 +01:00
55206f3807 Changed function variable declarations to BoundVariableSymbols 2018-11-25 21:44:03 +01:00
d4fc24b389 Fixes Source Text length being off by the length of a newline 2018-11-25 21:18:58 +01:00
5f9c32874a Diagnostic for invalid number of parameters 2018-11-25 20:55:36 +01:00
6bb8139f40 Break several while loop if tokens are not consumed 2018-11-25 19:45:10 +01:00
cae3d7fb53 Lots of work for handling incomplete code and inspections better 2018-11-25 19:30:18 +01:00
0b6359f499 Fix broken reference 2018-11-24 15:58:34 +01:00
cd04486d16 Adds Unary length operator 2018-11-24 15:11:33 +01:00
2dc59c5f8b Adds tostring and type functions 2018-11-24 14:49:20 +01:00
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