Граф коммитов

158 Коммитов

Автор SHA1 Сообщение Дата
Sheetal Nandi 072bd267fe Fix the modifier detection for fields and parameters
Fixes #305 and #306
2016-10-11 12:30:14 -07:00
Sheetal Nandi ca8743609f Support the default initializers for destructuring variables
Fixes #302
2016-10-11 12:05:15 -07:00
Sheetal Nandi 4567ceb94a Few updates 2016-10-10 16:17:14 -07:00
Sheetal Nandi 7ce774fcb5 Merge branch 'master' into restAndSpreadOperator 2016-10-10 13:48:14 -07:00
Sheetal Nandi 3376784cd3 Merge pull request #296 from Microsoft/switchCaseBlock
Handle the { after case clause
2016-10-10 13:46:21 -07:00
Sheetal Nandi 2daf70a83b Add scope name for ':' punctuation of case/default clause 2016-10-07 15:31:42 -07:00
Sheetal Nandi 817281ca1e { followed by ':' can only be statement and not object literal as other scenarios are already handled
Fixes #294
2016-10-07 15:27:03 -07:00
Sheetal Nandi 67b3e04d13 Support Spread and Rest operator
Fixes #291
2016-10-07 13:57:39 -07:00
Sheetal Nandi 10f29f53a3 Fix scope names for ',' punctuation 2016-10-07 12:01:16 -07:00
Sheetal Nandi 87f5a51a98 Handle when the last property of object literal ends with } on new line
Fixes #292
2016-10-07 10:44:27 -07:00
Sheetal Nandi 5433f90880 new/constructor followed by ':' are not methods
Fixes #285
2016-10-03 10:21:22 -07:00
Sheetal Nandi 52bb30d79b Update jsdoc type and variable recognition
Fixes #276
2016-09-29 14:41:22 -07:00
Sheetal Nandi 01b3bf11c2 Don't scope object literal keys as entity.name.attribute-name 2016-09-29 11:38:52 -07:00
Sheetal Nandi 6443ff7e6a await can be used in expression
Fixes #274
2016-09-29 11:15:37 -07:00
Sheetal Nandi 12e2c2bb7c Fix the usage of \G in destructuring vars 2016-09-28 14:51:17 -07:00
Sheetal Nandi 37d085ff54 Remove usage of \G from the object literal members 2016-09-28 14:35:55 -07:00
Sheetal Nandi 9e0c59c32d Fix the end expression regex for return type
It could end at \} if its last object type member without ';'
2016-09-28 11:58:36 -07:00
Sheetal Nandi 25e792b647 Indexer is something that has identifier(parameter) followed by [ with or without type annotation
Fixes #197
2016-09-26 16:16:11 -07:00
Sheetal Nandi 9e3d7a2631 Use expression as one of the rule in class body to pick up assignments to field declaration that are not on the same line
Fixes #221
2016-09-26 14:24:54 -07:00
Sheetal Nandi 41478e6392 constructor and new keyword do start the constructor/new signature independent of presence of (
Fixes #171
2016-09-26 13:53:01 -07:00
Sheetal Nandi c7d3c02ba0 Numeric literals can be used as type 2016-09-26 12:00:10 -07:00
Sheetal Nandi 34b250990e identifier.prototype makes identifier a class 2016-09-23 16:17:14 -07:00
Sheetal Nandi 7ea03120a4 Scope dom properties as properties only if they are not used as function 2016-09-23 15:34:21 -07:00
Sheetal Nandi 55c8c9e50d Scope functions, variables, methods, properties, objects, constants 2016-09-23 15:12:32 -07:00
Sheetal Nandi 74d7b4d06c Add support classes, functions, properties and constants
Fixes #71, #72
2016-09-23 10:39:47 -07:00
Sheetal Nandi 1c934d76bf Update the type parameter and arrow function look ahead regex 2016-09-22 15:15:20 -07:00
Sheetal Nandi 805eaa48b8 Minor changes 2016-09-22 10:57:21 -07:00
Sheetal Nandi 5ca49266ee < followed by default can be cast or arrow type parameter
Fixes #62
2016-09-22 09:09:06 -07:00
Sheetal Nandi 3f7e967aaf Handle type alias declaration spanning multiple lines
Fixes #166 #206 #231
2016-09-19 13:55:51 -07:00
Sheetal Nandi 2e290b2598 Add scope for type annotation operator ':' 2016-09-19 12:22:57 -07:00
Sheetal Nandi 181cb4a704 Handles the function type and constructor type in a better way 2016-09-19 12:05:14 -07:00
Sheetal Nandi e6b8e961b3 Rename the function references from entity.name.function to variable.function 2016-09-16 10:48:24 -07:00
Sheetal Nandi 84a4e42928 Scope '.' accessor 2016-09-15 16:27:02 -07:00
Sheetal Nandi 8170e063be Scope ';' 2016-09-15 16:16:35 -07:00
Sheetal Nandi 87aa92a02d Scope function names from function calls and add scoping for , 2016-09-15 16:03:59 -07:00
Sheetal Nandi a63a0fb403 Support arrow type parameters 2016-09-13 15:19:24 -07:00
Sheetal Nandi 1c5a0d1d8c Scope object literal keys
Addresses #23
2016-09-13 13:44:36 -07:00
Sheetal Nandi fed816067f new operator can end at another new operator
Fixes #139
2016-09-13 12:04:08 -07:00
Sheetal Nandi 7dbf74c46f Simplify class meta scoping and use meta.class.ts instead of meta.declaration.object.ts 2016-09-13 11:37:38 -07:00
Sheetal Nandi d1b682226a Fix the usage of \G because there is difference in how sublime uses it verses other editors 2016-09-13 11:22:33 -07:00
Sheetal Nandi 9e2430a063 Dont treat start of new line as regex since it could be continuing expression
Fixes #198
2016-09-13 10:51:04 -07:00
Sheetal Nandi aa5eecd502 Treat the expression after as operator as Type
Fixed #59
2016-09-13 10:43:37 -07:00
Sheetal Nandi 2d15a59b99 Some rearranging for type-predicate and typeof operator 2016-09-13 10:20:46 -07:00
Sheetal Nandi bbaffdca50 Support builtin type literals like this,true,false,null,undefined 2016-09-13 10:07:11 -07:00
Sheetal Nandi 5f891a8be5 Support readonly modifier
Fixes #242
2016-09-09 16:26:56 -07:00
Sheetal Nandi cfd2afb68b Fix the regex start
Fixes #243 and #3
2016-09-09 10:03:49 -07:00
Sheetal Nandi fecf4e3d97 Handle comments inside type
Fixes #65
2016-09-08 10:56:06 -07:00
Sheetal Nandi ddb23460ab Fix the for of declarations
Fixes #232
2016-09-07 15:36:30 -07:00
Sheetal Nandi 170078a969 Simplify arrow parameter regex so make sure it doesnt take forever 2016-09-06 15:41:25 -07:00
Sheetal Nandi 42d20a65fd Fix the end of ternary expression
Fixes #244
2016-09-06 14:55:33 -07:00