Nathan Shively-Sanders
42e7852034
Revert "Convert Declaration to union, not type hierarchy"
...
This reverts commit 573040f0cf .
2017-05-10 09:19:47 -07:00
Nathan Shively-Sanders
6941aebe43
Revert "Fix lint"
...
This reverts commit b39c319f0c .
2017-05-10 09:19:40 -07:00
Nathan Shively-Sanders
b15309251c
Revert "Turn ClassElement and TypeElement into unions too"
...
This reverts commit 22f353ac94 .
2017-05-10 09:19:35 -07:00
Nathan Shively-Sanders
10475c717e
Turn ClassElement and TypeElement into unions too
...
Slows down compilation another 3%, so I'm not sure we'll want to take
this change.
2017-05-10 09:19:22 -07:00
Nathan Shively-Sanders
9983a11429
Fix lint
2017-05-10 09:19:06 -07:00
Nathan Shively-Sanders
949bb27ff1
Convert Declaration to union, not type hierarchy
2017-05-10 09:19:00 -07:00
Nathan Shively-Sanders
0f74294da2
getNameOfDeclaration uniformly, including JS decls
...
JS-style assignment declarations have a name, but it's not stored on the
name property of the BinaryExpression. This commit adds
`getNameOfDeclaration` to uniformly get the name of a declaration.
It also reworks the declaration of `Declaration` so that accessing
`name` is an error unless the type does *not* include
BinaryExpression.
2017-05-10 09:18:35 -07:00
Nathan Shively-Sanders
428fbbfb50
Address PR comments
2017-05-05 08:57:09 -07:00
Ron Buckton
e3d54c3b47
Add check for tslib __await helper
2017-05-04 14:02:08 -07:00
Ron Buckton
c1103424b8
Fix class name emit in ES5
2017-05-01 10:43:32 -07:00
Yui
a1a2006074
Merge pull request #15160 from Microsoft/master-jsxChildren
...
[Master] Type checking JSX children
2017-04-21 10:02:13 -07:00
Mohamed Hegazy
5d7c75d88d
Add a source property on Diagnostic
2017-04-20 13:22:55 -07:00
Kanchalai Tanglertsampan
f6f0813528
Merge branch 'master' into master-jsxChildren
...
# Conflicts:
# src/compiler/checker.ts
# src/compiler/diagnosticMessages.json
2017-04-17 13:31:12 -07:00
Kanchalai Tanglertsampan
bb8bab3ae3
Remove a flag indicating the children is synthesized..We will give an error if you use children without specified such property
2017-04-14 15:21:49 -07:00
Andy
72feaad893
Merge pull request #14001 from Microsoft/refactor_findallrefs
...
Refactor findAllReferences. Now supports renamed exports and imports.
2017-04-14 09:57:54 -07:00
Nathan Shively-Sanders
11f715c724
Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
...
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Kanchalai Tanglertsampan
012f459594
Fix linting error
2017-04-12 12:28:34 -07:00
Kanchalai Tanglertsampan
4fa23127fc
Fixing consuming whitespace in children
2017-04-12 12:08:12 -07:00
Nathan Shively-Sanders
28cdaf24e9
Address PR:fix find-all-refs and slim down code
...
Also add readonly to find-all-ref test
2017-04-12 11:31:52 -07:00
Andy Hanson
c7d51a3053
Merge branch 'master' into refactor_findallrefs
2017-04-12 11:27:58 -07:00
Ron Buckton
6c4a24eb11
Fix down-level emit for captured loop variable in async function
2017-04-11 17:30:53 -07:00
Kanchalai Tanglertsampan
4562fd089c
Store scanning information whether JSXText is just an all whitespaces
2017-04-11 14:55:26 -07:00
Kanchalai Tanglertsampan
f86a730371
Consider whitespace that won't be emitted to be different kind so that we won't include in typ-checking
2017-04-11 10:52:18 -07:00
Kanchalai Tanglertsampan
b3846bfe65
Wip - type checking JSX children
2017-04-07 16:41:29 -07:00
Andy
2b61d18996
Merge pull request #14985 from Microsoft/jsdoc-format
...
Enable jsdoc-format lint rule
2017-04-05 07:19:31 -07:00
Andy Hanson
73cab09608
Enable jsdoc-format lint rule
2017-04-03 14:39:19 -07:00
Ron Buckton
fd081f40a8
Clean up literal emit
2017-04-03 14:17:03 -07:00
rbuckton
3eb6270c9b
Trim whitespace
2017-03-30 12:59:09 -07:00
rbuckton
ea2aa0c079
Infer a rest parameter for javascript function that uses 'arguments'
2017-03-29 18:13:19 -07:00
Yui
0cb490e2c2
Merge pull request #14692 from Microsoft/master-fixResolveEntityName
...
[Master] Fix resolve entity name to not dive inside property access expression when the expression is not entity name
2017-03-29 09:55:36 -07:00
Mohamed Hegazy
0637f241b7
Merge remote-tracking branch 'origin/master' into checkJSFiles
2017-03-27 21:23:07 -07:00
Arthur Ozga
7340c4ca1e
type predicate support
2017-03-27 11:53:44 -07:00
Andy Hanson
aa1c860f08
Merge branch 'master' into refactor_findallrefs
2017-03-27 11:31:07 -07:00
Mohamed Hegazy
3378f5cb38
Merge branch 'master' into checkJSFiles
2017-03-27 10:46:40 -07:00
Arthur Ozga
a39bb0aaaa
midway through response to ron's comments
2017-03-27 00:34:48 -07:00
Arthur Ozga
e2b3c9c663
remove NodeBuilder
2017-03-26 22:29:17 -07:00
Arthur Ozga
a94f874b06
use NodeBuilderContext
2017-03-25 14:14:36 -07:00
Arthur Ozga
82bd05bbc0
Merge branch 'master' into createTypeNode
2017-03-23 16:29:00 -07:00
Arthur Ozga
bfb1bb4801
Merge branch 'createTypeNode2' into createTypeNode
2017-03-23 14:12:25 -07:00
Anders Hejlsberg
f4fc9ed61f
Fix deeply nested type check
2017-03-23 11:23:13 -07:00
Arthur Ozga
dfb4df92c8
move undefined handling to caller
2017-03-23 11:17:25 -07:00
Arthur Ozga
1f3029d4f1
error handling
2017-03-23 08:34:58 -07:00
Arthur Ozga
abd14ef185
temp
2017-03-22 19:10:56 -07:00
Mohamed Hegazy
e408cad618
Merge branch 'master' into checkJSFiles
2017-03-22 15:45:27 -07:00
Mohamed Hegazy
b2f49ccfcb
Merge branch 'master' into optionsDescription
2017-03-22 11:04:35 -07:00
Klaus Meinhardt
eb8972d5ff
Add parent types to class elements
2017-03-22 15:28:51 +01:00
Klaus Meinhardt
fcca27c03e
Fix type of HeritageClause#types
2017-03-22 13:00:07 +01:00
Klaus Meinhardt
6e086980a4
Also fix type of NewExpression#arguments
2017-03-22 12:58:28 +01:00
Klaus Meinhardt
1511dd9c24
Fix parent type of JsxAttributes
2017-03-22 12:58:28 +01:00
Arthur Ozga
5b739cf78c
respond to comments
2017-03-21 22:54:06 -07:00