Commit Graph

4491 Commits

Author SHA1 Message Date
Sheetal Nandi
abb0acc639 Breakpoints for while statement 2014-10-20 23:03:33 -07:00
Sheetal Nandi
35cdea1a0e Breakpointspan implementation for function declaration, expression statements and return statements 2014-10-20 23:03:24 -07:00
Sheetal Nandi
cec814689c Changed the namespace from ts.Breakpoints to ts.BreakpointResolver 2014-10-20 23:03:14 -07:00
Sheetal Nandi
fbd78b407e Remove the old implementation of the breakpoint resolver 2014-10-20 23:03:05 -07:00
Sheetal Nandi
06d29a00f2 Breakpoint span in variable declarations in new language service
Also updates the fourslash breakpoints baseline to be more readable
2014-10-20 23:02:56 -07:00
Vladimir Matveev
35f4c48735 respect parent indentation 2014-10-20 17:56:13 -07:00
Mohamed Hegazy
373dc760bf respond to code review comments 2014-10-20 17:41:16 -07:00
Mohamed Hegazy
dd7ca69866 Create a new flag for diagnostics 'isEarly' and disable emit if this flag is set. Set the flag by default on all let and const errors to ensure we are not emitting invalid JS code. 2014-10-20 17:38:50 -07:00
Vladimir Matveev
092900b62f adjust formatting scanner implementation 2014-10-20 15:53:49 -07:00
Mohamed Hegazy
d5fe43b53e allow let and const declarations in module bodies under labels 2014-10-20 15:31:33 -07:00
Mohamed Hegazy
91f40988f1 Simplify the binder logic for managing blockScopeContainer 2014-10-20 15:30:06 -07:00
Mohamed Hegazy
dd5c89d5cf Update error messages 2014-10-20 13:48:22 -07:00
Yui T
7806094a1a Address code review 2014-10-20 13:47:09 -07:00
Mohamed Hegazy
0e7d8b62ef Merge branch 'master' into letAndConst 2014-10-20 13:34:06 -07:00
Mohamed Hegazy
c02cc7ca15 use getCanonicalFileName in the language service when searching for files 2014-10-20 13:18:32 -07:00
Jason Freeman
d5709edbc7 Merge branch 'master' into sigHelp 2014-10-20 11:52:31 -07:00
Jason Freeman
1b8814cdcd Address PR feedback 2014-10-20 11:51:45 -07:00
Anders Hejlsberg
ff20df7a4a Merge branch 'master' into optionalPropertySubtyping
Conflicts:
	tests/baselines/reference/arrayLiteralWithMultipleBestCommonTypes.types
2014-10-20 11:33:23 -07:00
Anders Hejlsberg
04dad2cc22 Adding missing blank 2014-10-20 11:20:14 -07:00
Anders Hejlsberg
152a9402d0 Merge pull request #914 from Microsoft/parensInTypes
Parentheses in type literals
2014-10-20 09:43:07 -07:00
Anders Hejlsberg
81eaae0afa Require optional properties to be present in subtypes
Remove unused getBestCommonType method (unrelated change)
2014-10-19 16:43:32 -07:00
Vladimir Matveev
381a2ec425 initial rev 2014-10-18 15:40:00 -07:00
Anders Hejlsberg
e96983dd2b Merge pull request #908 from Microsoft/contextualSignatureUnionTypes
Union types in contextual signature instantiations
2014-10-18 08:47:41 -07:00
Jason Freeman
c20e4f53ea Produce SignatureHelpParameters from type parameters for generic help 2014-10-17 17:03:45 -07:00
Jason Freeman
808ded88d6 Signature Help relies on display building routines in checker 2014-10-17 17:03:43 -07:00
Jason Freeman
628fa4c7b2 Remove OmittedType 2014-10-17 16:55:16 -07:00
Jason Freeman
08f9a0148a Parser changes to parse omitted types correctly 2014-10-17 16:55:11 -07:00
Jason Freeman
390b92dac0 Move getChildListThatStartsWithOpenerToken inside getSignatureHelpItems 2014-10-17 16:55:07 -07:00
Anders Hejlsberg
df715decbc Changing type-to-string conversions to use parentheses 2014-10-17 16:53:18 -07:00
Vladimir Matveev
6fe2b3ea90 rescan '>' and '/' if necessary 2014-10-17 16:24:12 -07:00
Mohamed Hegazy
0a59cdd5a0 Treat blockScoped variable declarations as a separate category when it comes to symbol flags, instead of compining BlockScoped and Variable 2014-10-17 16:18:18 -07:00
Mohamed Hegazy
a5a6c6f242 Allow const and let declarations to be exported in modules. Also ensure that const module elements are not used as references. 2014-10-17 15:15:22 -07:00
Anders Hejlsberg
766010e531 Parentheses in type literals 2014-10-17 13:45:13 -07:00
Vladimir Matveev
4e84377187 multiline comments support 2014-10-17 13:22:39 -07:00
Mohamed Hegazy
4ef68b9fb0 Respond to code review comments 2014-10-17 10:09:21 -07:00
Mohamed Hegazy
fd469d63b1 Fix search for shadowed const declarations by a var declarations to search for any variable instead of only a blockScoped one to ensure we are not picking it up from a wrong scope. 2014-10-17 09:28:42 -07:00
Daniel Rosenwasser
ad6203f4a3 Merge pull request #860 from Microsoft/numbersAreHard
Take runtime semantics of numerically named properties into account.
2014-10-16 19:31:41 -07:00
Mohamed Hegazy
2cef9ab852 Merge pull request #907 from Microsoft/rwcRunner
Update Rwc runner
2014-10-16 17:42:35 -07:00
Jason Freeman
3961ad3b82 Merge branch 'master' into displayBuilder
Conflicts:
	src/compiler/checker.ts
2014-10-16 13:32:22 -07:00
Jason Freeman
e0e9fe83d2 Address PR feedback for displayBuilder 2014-10-16 13:11:19 -07:00
Mohamed Hegazy
e561049429 Merge branch 'master' into rwcRunner 2014-10-16 12:37:29 -07:00
Mohamed Hegazy
3aedac4171 disable source map record validation in RWC runner 2014-10-16 12:35:14 -07:00
Anders Hejlsberg
87b562c5dc Union types in contextual signature instantiations 2014-10-16 10:30:58 -07:00
Mohamed Hegazy
60bb37be60 Add language service support for const 2014-10-16 10:28:00 -07:00
Mohamed Hegazy
e15f4e6d34 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-16 09:30:58 -07:00
Daniel Rosenwasser
73d575e317 Merge branch 'master' into numbersAreHard
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.errors.txt
2014-10-15 17:07:22 -07:00
Vladimir Matveev
c211f97169 Adjust rules to handle interfaces correctly - 19 failing tests 2014-10-15 16:53:59 -07:00
Daniel Rosenwasser
ea81831fb3 More comments. 2014-10-15 15:15:08 -07:00
Daniel Rosenwasser
d33aa4335f Switched syntactic classifier to use new tree.
Also added tests.
2014-10-15 15:01:38 -07:00
Vladimir Matveev
c0466b636f fix a few issues in rules 2014-10-15 14:54:49 -07:00