Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge master into exportEquals #2467

Merged
merged 303 commits into from
Mar 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
303 commits
Select commit Hold shift + click to select a range
0672923
Parse classDeclaration in strict mode code for ES6
Mar 12, 2015
800c523
Clean up redundant tests
Mar 12, 2015
af05afd
Emit Super as super
Mar 12, 2015
b3c8bcb
Emit export default in ES6
mhegazy Mar 13, 2015
b6bbf06
Update error message
mhegazy Mar 13, 2015
8e06265
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 13, 2015
8796396
merge with master
vladima Mar 13, 2015
a6a8a96
Support an optional type annotation on export default statement
mhegazy Mar 13, 2015
0675a92
consider binding elements as always initialized with doing shadow check
vladima Mar 13, 2015
db324db
merge with master
vladima Mar 13, 2015
c4b0302
Clean up diagnostic timers and -diagnostic output
ahejlsberg Mar 13, 2015
99a6f2b
Removing unused function from emitter
ahejlsberg Mar 13, 2015
00ac836
Merge branch 'master' into cleanupDiagnostics
ahejlsberg Mar 13, 2015
d163205
accepted baselines
vladima Mar 13, 2015
a7dac51
merge with master
vladima Mar 14, 2015
f6de919
Add assert in reportNoCommonSupertypeError
JsonFreeman Mar 13, 2015
df6f856
Persist inference context object throughout the signature, and add is…
JsonFreeman Mar 13, 2015
495caf0
Optimize the clearing of inferredTypes
JsonFreeman Mar 14, 2015
a0b9607
Get rid of inferenceFailureType, just set the failedTypeParameterInde…
JsonFreeman Mar 14, 2015
a29b6fe
Add tests for type parameter fixing
JsonFreeman Mar 14, 2015
84634ac
Disallow line terminator after arrow function parameters, before =>
caitp Mar 10, 2015
dd16fed
Perform error reporting in checker
caitp Mar 10, 2015
231f522
Add additional test-cases for arrow function grammar
caitp Mar 10, 2015
aa3cefb
Check that arrow is on same line as parameters
caitp Mar 11, 2015
fdc673f
Fix line wrapping
caitp Mar 11, 2015
5e107e6
Address slew of review comments
caitp Mar 11, 2015
bd828e3
Parse arrow function body as identifier if missing => or {
caitp Mar 11, 2015
3dc5faf
Restore earlier behaviour when parsing non-simple arrow function bodies
caitp Mar 11, 2015
10925c1
Make sure arrow function grammar rules can deal with type annotations
caitp Mar 13, 2015
13e55ae
Address code review
Mar 14, 2015
02d3568
Share SourceFile with other grammar checker that needs it
caitp Mar 15, 2015
fac3cf8
addressed PR feedback
vladima Mar 15, 2015
3cea68d
Merge pull request #2353 from Microsoft/shadowingNameViaBindingPattern
vladima Mar 15, 2015
2a07d3f
Address code review: do not emit default constructor
Mar 15, 2015
ebcb86b
enable navbar for export defaults
mhegazy Mar 5, 2015
a02f85d
Merge pull request #2368 from Microsoft/exportDefaultLS2
mhegazy Mar 15, 2015
7430f3c
Merge branch 'master' into exportDefaultType
mhegazy Mar 15, 2015
44a5343
Upate error message
mhegazy Mar 15, 2015
b6a6d85
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 15, 2015
9bf5a11
Update baselines
Mar 15, 2015
c984e81
Fix issue of the default binding not elided if namedImport is reference
mhegazy Mar 16, 2015
c877b1e
Add tests
mhegazy Mar 16, 2015
ad98fad
Merge pull request #2283 from caitp/issue-2282
DanielRosenwasser Mar 16, 2015
c70385c
Update baselines
Mar 16, 2015
3bb4b50
Update baselines for symbol
Mar 16, 2015
0eeb7ce
Update baselines
Mar 16, 2015
9933f6c
Address PR feedback
JsonFreeman Mar 16, 2015
bd811ce
Merge branch 'master' of https://github.com/Microsoft/TypeScript into…
JsonFreeman Mar 16, 2015
090148f
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 16, 2015
f5a4b0b
use 'allowGeneratedIdentifiers' to explicitly tell when identifier ca…
vladima Mar 16, 2015
7f8ef38
addressed PR feedback
vladima Mar 16, 2015
85cf761
Merge pull request #2374 from Microsoft/renamingCleanup
vladima Mar 16, 2015
2c7ea7f
Update Baselines
Mar 16, 2015
696b688
Merge branch 'master' into exportDefaultType
mhegazy Mar 16, 2015
e573461
Address code review. Use-before-def check will be added to separate w…
Mar 16, 2015
51c64b3
Added configuration message. Added logic to expand tabs to spaces using
Mar 16, 2015
5845d2d
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 16, 2015
90fae03
More PR feedback
JsonFreeman Mar 16, 2015
28c4b02
Merge branch 'master' of https://github.com/Microsoft/TypeScript into…
JsonFreeman Mar 16, 2015
2c60cf9
Add use of host-configured format options to additional code site.
Mar 16, 2015
88933d5
Address code review
Mar 16, 2015
91c5bae
Address code review
Mar 16, 2015
c51983d
Address code review
Mar 16, 2015
513b45d
Merge branch 'master' into emitClass
Mar 16, 2015
2240fbf
Merge pull request #2339 from Microsoft/exportDefaultType
mhegazy Mar 16, 2015
e9ea336
Merge branch 'master' into DtsExports_all
vladima Mar 16, 2015
9b3fccd
Address code review; Use for..of and use if-statement
Mar 16, 2015
c4cb3e3
Merge pull request #2333 from Microsoft/emitClass
yuit Mar 17, 2015
6fc5523
Merge branch 'master' of https://github.com/Microsoft/TypeScript into…
JsonFreeman Mar 17, 2015
218736b
initial version of declaration emit for default export
vladima Mar 17, 2015
9b62c2c
Merge branch 'master' into DtsExports_all
vladima Mar 17, 2015
eb954e1
Respond to code review comments
mhegazy Mar 17, 2015
74eb96a
correctly merge const enum only and instantiated modules
vladima Mar 17, 2015
cb012e0
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 17, 2015
9910869
Do not emit "export" for classes within modules, and do not write the…
mhegazy Mar 17, 2015
3d80243
Export classes defined wihtin internal modules correctelly
mhegazy Mar 17, 2015
686d1c6
A more complete isCompletedNode.
DanielRosenwasser Mar 17, 2015
1932f72
Handel export name bindings in internal modules in ES6
mhegazy Mar 17, 2015
a7f57cb
Indentation within binding patterns.
DanielRosenwasser Mar 17, 2015
3eea655
Rename tests.
DanielRosenwasser Mar 17, 2015
905e46e
Account for call signatures properly.
DanielRosenwasser Mar 17, 2015
686a100
Moved construct signature down appropriately, fixed logic for functio…
DanielRosenwasser Mar 17, 2015
6a6839a
Always indent on tuple type literals.
DanielRosenwasser Mar 17, 2015
577c12e
Added accumulated tests.
DanielRosenwasser Mar 17, 2015
b4811fc
Fix copy/paste error.
DanielRosenwasser Mar 17, 2015
26647d4
Fixed harness.
DanielRosenwasser Mar 17, 2015
88adb8f
Added tests for completions before a new scope.
DanielRosenwasser Mar 17, 2015
693da9a
Added tests.
DanielRosenwasser Mar 17, 2015
8eae639
Added tests for #1410.
DanielRosenwasser Mar 17, 2015
92955a8
Fixed up tests.
DanielRosenwasser Mar 17, 2015
c27e07a
Moved logic from smart indenter; use 'scope nodes' for completions.
DanielRosenwasser Mar 17, 2015
f1d5582
Fixed missing marker.
DanielRosenwasser Mar 17, 2015
c30b71d
Removed negations from test.
DanielRosenwasser Mar 17, 2015
34a3fc4
Fixed up more tests.
DanielRosenwasser Mar 17, 2015
c89febe
Added completion check for prefix-unary, binary, and conditional expr…
DanielRosenwasser Mar 17, 2015
ad75193
Merge branch 'master' into cleanupDiagnostics
ahejlsberg Mar 17, 2015
857d1e0
Fixed case for index signatures.
DanielRosenwasser Mar 17, 2015
0aa3a72
Merge branch 'completeIsCompleteNode' into completionsInIncompleteCon…
DanielRosenwasser Mar 17, 2015
f2a7367
Added index signature case.
DanielRosenwasser Mar 17, 2015
ad084de
Account for typeof expressions, added test.
DanielRosenwasser Mar 17, 2015
42b711b
Merge pull request #2354 from Microsoft/cleanupDiagnostics
ahejlsberg Mar 17, 2015
a301ee3
Merge pull request #2382 from Microsoft/mergingConstEnumOnlyModules
vladima Mar 17, 2015
f14abfe
Add clarifying comment
JsonFreeman Mar 17, 2015
3879d0a
Merge branch 'master' of https://github.com/Microsoft/TypeScript into…
JsonFreeman Mar 17, 2015
1227210
Merge pull request #2385 from Microsoft/completeIsCompleteNode
DanielRosenwasser Mar 17, 2015
2bcf84c
Merge pull request #2356 from Microsoft/typeParameterFixing
JsonFreeman Mar 17, 2015
87dacb8
Add .gitattributes to override GitHub Linguist language classificatio…
Mar 17, 2015
79995f5
Merge pull request #2394 from Microsoft/repoLanguageClassificationFix
danquirk Mar 17, 2015
b2b3d8b
Remove CodeClimate stuff
danquirk Mar 17, 2015
754a8a6
More cases and tests for them.
DanielRosenwasser Mar 17, 2015
83d38c4
Delete extra comma
danquirk Mar 17, 2015
860c046
Start using nodeIsMissing.
DanielRosenwasser Mar 17, 2015
7a716d9
Start handling element access expressions.
DanielRosenwasser Mar 17, 2015
6155832
Merge pull request #2395 from Microsoft/removeCodeClimateStuff
danquirk Mar 17, 2015
735452c
Merge branch 'master' into completionsInIncompleteConstructs
DanielRosenwasser Mar 17, 2015
f33d165
Merge branch 'master' into completionsInIncompleteConstructs
DanielRosenwasser Mar 17, 2015
766cb68
Add comments
mhegazy Mar 17, 2015
a06ce61
Merge branch 'master' into es6ImportExportEmit
mhegazy Mar 17, 2015
3418a49
Line endings.
DanielRosenwasser Mar 17, 2015
e49fc05
Added tests.
DanielRosenwasser Mar 17, 2015
42a0c34
Merge pull request #2335 from Microsoft/es6ImportExportEmit
mhegazy Mar 17, 2015
eb11607
use type annotation when emitting declarations
vladima Mar 17, 2015
5db3b0d
Types for decorators
rbuckton Mar 17, 2015
fb7dd52
Utilities for decorators
rbuckton Mar 17, 2015
efd8a89
Diagnostics for decorators
rbuckton Mar 17, 2015
fb10deb
Scanner updates for decorators
rbuckton Mar 17, 2015
8282a0b
Parser updates for decorators
rbuckton Mar 17, 2015
39001f5
Checker updates for decorators
rbuckton Mar 17, 2015
bd4d7fc
Emit for decorators, updated to ES6 classes.
rbuckton Mar 17, 2015
f1e8e61
Updated formatting for decorators
rbuckton Mar 17, 2015
6c32a8b
Updated baselines
rbuckton Mar 17, 2015
f909c6c
Updated baselines
rbuckton Mar 17, 2015
5673400
Updated baselines
rbuckton Mar 17, 2015
667bc03
Add toolsversion to shim so we can read it from VS.
Mar 17, 2015
bf16ab7
fix typo
Mar 17, 2015
825c301
We only need the 2 most significant digits.
Mar 17, 2015
8afde73
drop interned indentation prefixes if format options has changed
vladima Mar 17, 2015
bb37ea9
Merge pull request #2400 from Microsoft/toolsversion
paulvanbrenk Mar 17, 2015
e4f6f16
merge with master, accepted baselines
vladima Mar 18, 2015
17f3e14
Merge pull request #2402 from Microsoft/dropInternedStrings
vladima Mar 18, 2015
e1d7389
Merge remote-tracking branch 'origin/master' into
Mar 18, 2015
c38e065
do not emit non-exported import declarations that don't have import c…
vladima Mar 18, 2015
ff356ce
Added sourcemap tests
rbuckton Mar 18, 2015
b82fd59
merge with master, accept baselines
vladima Mar 18, 2015
36b9951
Simplify code for emitting comments.
CyrusNajmabadi Mar 18, 2015
9582d7c
Add test for pinned comments.
CyrusNajmabadi Mar 18, 2015
63e4420
Simplify flow control.
CyrusNajmabadi Mar 18, 2015
d2ea675
Merge pull request #2406 from Microsoft/pinnedComments
CyrusNajmabadi Mar 18, 2015
035ad42
Simplify comment emit.
CyrusNajmabadi Mar 18, 2015
3a75350
Merge pull request #2408 from Microsoft/pinnedComments2
CyrusNajmabadi Mar 18, 2015
afc142c
Merge remote-tracking branch 'origin/master' into serverConfiguration…
Mar 18, 2015
7bcd18f
Fix diagnostic codes.
CyrusNajmabadi Mar 18, 2015
34e612c
Add handling of hard tabs in server buffers. Change message protocol to
Mar 18, 2015
2f7db61
Merge pull request #2409 from Microsoft/diagnosticCodes
CyrusNajmabadi Mar 18, 2015
9761f4b
PR comment, sourcemap test
rbuckton Mar 18, 2015
ec42789
Addressed CR feedback.
DanielRosenwasser Mar 18, 2015
e82ea7d
Added test for completions at beginning of file.
DanielRosenwasser Mar 18, 2015
ee073e1
Remove space.
DanielRosenwasser Mar 18, 2015
ce3a91c
Added tests for const modifiers.
DanielRosenwasser Mar 18, 2015
9a507fa
Fixed test.
DanielRosenwasser Mar 18, 2015
5cbf667
Fixed the contextual check for modifiers to check the original modifi…
DanielRosenwasser Mar 18, 2015
355dcd1
Merge pull request #2396 from Microsoft/completionsInIncompleteConstr…
DanielRosenwasser Mar 18, 2015
7462915
Expose setParentNodes on createCompilerHost
mhegazy Mar 18, 2015
2902aa2
Added tests.
DanielRosenwasser Mar 18, 2015
2ad40c2
addressed PR feedback
vladima Mar 18, 2015
f96e52c
Merge pull request #2414 from Microsoft/createSourceFile
mhegazy Mar 18, 2015
773530c
Fixed test.
DanielRosenwasser Mar 18, 2015
acd0fdf
Fixed issue where goToDef on a shorthand property of an undefined ent…
DanielRosenwasser Mar 18, 2015
371f2df
Merge pull request #2139 from Microsoft/DtsExports_all
vladima Mar 18, 2015
3b453e6
Extended test.
DanielRosenwasser Mar 18, 2015
d06f71e
Merge pull request #2413 from Microsoft/constAntlyAPainForUs
DanielRosenwasser Mar 18, 2015
49c4b5a
extract declaration emitter to separate file
vladima Mar 18, 2015
e8b0985
Merge pull request #2417 from Microsoft/separateDeclEmit_2
vladima Mar 18, 2015
59338ed
Add libraryTargets to prereqs of instrumenter
JsonFreeman Mar 19, 2015
e2db46e
Merge pull request #2419 from Microsoft/instrumenterLibraryTargets
JsonFreeman Mar 19, 2015
3e7e9f4
Merge pull request #2415 from Microsoft/shorthandsOnNonExistentProperty
DanielRosenwasser Mar 19, 2015
79272d7
Merge pull request #2199 from Microsoft/enumCleanup
vladima Mar 19, 2015
85d71b2
No emit should happen if there are declaration errors and noEmitOnErr…
CyrusNajmabadi Mar 19, 2015
791a0e4
Don't actually emit declarations when we just want the diagnostics fo…
CyrusNajmabadi Mar 20, 2015
0d2a5bb
Merge pull request #2431 from Microsoft/noEmitOnErrorCompileOnSave
CyrusNajmabadi Mar 20, 2015
0fb624a
PR feedback
rbuckton Mar 20, 2015
2078aff
Minor cleanup of resolveName for decorators
rbuckton Mar 20, 2015
cbeeb51
Add a new findReferences API that buckets results with the definition…
CyrusNajmabadi Mar 20, 2015
9ae0815
Treat 0x0085 as whitespace, not as a line terminator. This matches E…
CyrusNajmabadi Mar 20, 2015
9412a6d
Improve display of symbol definitions.
CyrusNajmabadi Mar 21, 2015
299fbe3
Refactored checkDecoratorSignature and renamed getAnnotationTypeForDe…
rbuckton Mar 21, 2015
6633349
Simplified grammar check for decorators.
rbuckton Mar 21, 2015
8798235
Added support in the server for tsconfig.json. When a host opens a
Mar 21, 2015
ae4f164
Added gc of configured projects to handle case in which file is opened
Mar 21, 2015
fcd1e1f
Merge pull request #2448 from Microsoft/newlines
CyrusNajmabadi Mar 22, 2015
19517ac
Emit, even in the presence of declaration errors and noEmitOnError.
CyrusNajmabadi Mar 23, 2015
8943c39
removed unused functions
vladima Mar 23, 2015
5e241a3
Removed the (now unused) lineBreakBetween
rbuckton Mar 23, 2015
1b8933c
Renamed variables for clarity
rbuckton Mar 23, 2015
f90253f
Merge branch 'master' into exportEquals
mhegazy Mar 23, 2015
86d561d
Check for instantiation on export default in ES6
mhegazy Mar 23, 2015
bf383b5
Simplified check for decorators.
rbuckton Mar 23, 2015
b9e503d
Ellide uninstantiated exports in ES6
mhegazy Mar 23, 2015
d47445b
Merge branch 'exportEquals' of https://github.com/Microsoft/TypeScrip…
mhegazy Mar 23, 2015
d2ead15
Accept baseline changes
mhegazy Mar 23, 2015
5b988cd
Some emit cleanup for ES6 classes, comments.
rbuckton Mar 23, 2015
8dd9b9f
Updated check and emit, updated baselines
rbuckton Mar 23, 2015
755d806
Merge pull request #2461 from Microsoft/emitOnDeclarationErrors
CyrusNajmabadi Mar 23, 2015
af6d1eb
Revert "Emit, even in the presence of declaration errors and noEmitOn…
CyrusNajmabadi Mar 23, 2015
141c96b
revised name generation
vladima Mar 23, 2015
7b824ba
Make completion prefix matching case insensitive.
Mar 24, 2015
7388120
Fix issue where getSemanticDiagnostics was returning undefined on a .…
CyrusNajmabadi Mar 24, 2015
335d567
Comments and cleanup
rbuckton Mar 24, 2015
bce9b5a
Break out completion symbol collection into its own function.
CyrusNajmabadi Mar 24, 2015
a1cbfdf
Use the same logic for completion entry details that we do for gettin…
CyrusNajmabadi Mar 24, 2015
66b3fae
Remove the active completion session.
CyrusNajmabadi Mar 24, 2015
2af1b92
CR feedback.
CyrusNajmabadi Mar 24, 2015
c6f11f3
disallow assignments to imported exports
vladima Mar 24, 2015
3a8df41
fix typo in function name
vladima Mar 24, 2015
eed6f0d
Use an output format for quickinfo that more closely matches the orig…
CyrusNajmabadi Mar 24, 2015
c459bb7
CR feedback.
CyrusNajmabadi Mar 24, 2015
4802b4b
CR feedback.
CyrusNajmabadi Mar 24, 2015
a5bd919
PR feedback.
CyrusNajmabadi Mar 24, 2015
0fdb207
addressed PR feedback
vladima Mar 24, 2015
8e2b7d0
Merge pull request #2473 from Microsoft/getSemanticDiagnosticsDeclara…
CyrusNajmabadi Mar 24, 2015
9141bfc
Merge pull request #2470 from Microsoft/noEmitOnDeclarationErrors
CyrusNajmabadi Mar 24, 2015
f0cbcd6
addressed PR feedback
vladima Mar 24, 2015
8d55fe0
PR feedback.
CyrusNajmabadi Mar 24, 2015
695c50b
Disallow decorators on multiple get/set accessors of the same name
rbuckton Mar 24, 2015
4848207
Moved findConfigFile to program.ts. Addressed pull request comments.
Mar 24, 2015
927e60d
Merge branch 'master' into findReferences
CyrusNajmabadi Mar 24, 2015
70bd582
Changed emit for decorators
rbuckton Mar 24, 2015
e6ccaf0
Updated typecheck for property, method, and parameter decorators
rbuckton Mar 24, 2015
62b5ffa
Merge pull request #2446 from Microsoft/findReferences
CyrusNajmabadi Mar 24, 2015
baac6d8
Merge pull request #2450 from Microsoft/tsconfigServer
steveluc Mar 24, 2015
515cdcd
return undefined if we are not renaming to ensure we get the correct …
mhegazy Mar 24, 2015
614b106
Merge branch 'master' into completionEntryDetails
CyrusNajmabadi Mar 24, 2015
e5e5ad8
Merge pull request #2471 from Microsoft/revisedNameGen2
vladima Mar 24, 2015
20a0ac5
Merge pull request #2476 from Microsoft/immutableBindings
vladima Mar 24, 2015
63278ca
Don't bother with a predicate. It doesn't provide enough of a perf sa…
CyrusNajmabadi Mar 24, 2015
e26c260
PR feedback.
CyrusNajmabadi Mar 24, 2015
69ff9b3
PR feedback.
CyrusNajmabadi Mar 24, 2015
f531193
Updates to emit and updated baselines
rbuckton Mar 25, 2015
4f0dc28
Merge pull request #2475 from Microsoft/completionEntryDetails
CyrusNajmabadi Mar 25, 2015
ea15225
Merge pull request #2399 from Microsoft/decorators_min
rbuckton Mar 25, 2015
a60d591
Cleanup of duplicate code due to merge
rbuckton Mar 25, 2015
4361e6e
Merge branch 'exportEquals' into exportEqualsMerged
mhegazy Mar 25, 2015
352633d
Rename isES6ModuleMemberDeclaration to isES6ExportedDeclaration.
mhegazy Mar 25, 2015
27c5d6f
use the correct check for import and export specifiers
mhegazy Mar 25, 2015
6c40c95
Disallow export declarations in internal modules
mhegazy Mar 25, 2015
ab5c09a
Make isReferencedAliasDeclaration check children
mhegazy Mar 25, 2015
bc51dd1
In ES6 use "export var x" for internal modules and enums instead of a…
mhegazy Mar 25, 2015
aa01dcd
Move es6 alias name handeling to getAliasNameSubstitution to match ge…
mhegazy Mar 25, 2015
1c45b77
Merge branch 'master' into exportEqualsMerged
mhegazy Mar 25, 2015
fad8892
Merge branch 'master' into exportEqualsMerged
mhegazy Mar 25, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js linguist-language=TypeScript
11 changes: 1 addition & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,4 @@ language: node_js
node_js:
- '0.10'

sudo: false

before_script: npm install -g codeclimate-test-reporter

after_script:
- cat coverage/lcov.info | codeclimate

addons:
code_climate:
repo_token: 9852ac5362c8cc38c07ca5adc0f94c20c6c79bd78e17933dc284598a65338656
sudo: false
8 changes: 5 additions & 3 deletions Jakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var compilerSources = [
"utilities.ts",
"binder.ts",
"checker.ts",
"declarationEmitter.ts",
"emitter.ts",
"program.ts",
"commandLineParser.ts",
Expand All @@ -57,6 +58,7 @@ var servicesSources = [
"utilities.ts",
"binder.ts",
"checker.ts",
"declarationEmitter.ts",
"emitter.ts",
"program.ts",
"commandLineParser.ts",
Expand All @@ -65,7 +67,7 @@ var servicesSources = [
return path.join(compilerDirectory, f);
}).concat([
"breakpoints.ts",
"navigateTo.ts",
"navigateTo.ts",
"navigationBar.ts",
"outliningElementsCollector.ts",
"patternMatcher.ts",
Expand Down Expand Up @@ -539,7 +541,7 @@ function cleanTestDirs() {
}

jake.mkdirP(localRwcBaseline);
jake.mkdirP(localTest262Baseline);
jake.mkdirP(localTest262Baseline);
jake.mkdirP(localBaseline);
}

Expand Down Expand Up @@ -718,7 +720,7 @@ file(loggedIOJsPath, [builtLocalDirectory, loggedIOpath], function() {

var instrumenterPath = harnessDirectory + 'instrumenter.ts';
var instrumenterJsPath = builtLocalDirectory + 'instrumenter.js';
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath], [], /*useBuiltCompiler*/ true);
compileFile(instrumenterJsPath, [instrumenterPath], [tscFile, instrumenterPath].concat(libraryTargets), [], /*useBuiltCompiler*/ true);

desc("Builds an instrumented tsc.js");
task('tsc-instrumented', [loggedIOJsPath, instrumenterJsPath, tscFile], function() {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,9 @@
"mocha": "latest",
"chai": "latest",
"browserify": "latest",
"istanbul": "latest",
"codeclimate-test-reporter": "latest"
"istanbul": "latest"
},
"scripts": {
"test": "jake generate-code-coverage"
"test": "jake runtests"
}
}
3 changes: 1 addition & 2 deletions scripts/processDiagnosticMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ function buildInfoFileOutput(messageTable: InputDiagnosticMessageTable, nameMap:
' ' + convertPropertyName(nameMap[name]) +
': { code: ' + diagnosticDetails.code +
', category: DiagnosticCategory.' + diagnosticDetails.category +
', key: "' + name.replace('"', '\\"') + '"' +
(diagnosticDetails.isEarly ? ', isEarly: true' : '') +
', key: "' + name.replace(/[\"]/g, '\\"') + '"' +
' },\r\n';
}

Expand Down
15 changes: 8 additions & 7 deletions src/compiler/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,14 @@ module ts {
}
else {
bindDeclaration(node, SymbolFlags.ValueModule, SymbolFlags.ValueModuleExcludes, /*isBlockScopeContainer*/ true);
if (state === ModuleInstanceState.ConstEnumOnly) {
// mark value module as module that contains only enums
node.symbol.constEnumOnlyModule = true;
let currentModuleIsConstEnumOnly = state === ModuleInstanceState.ConstEnumOnly;
if (node.symbol.constEnumOnlyModule === undefined) {
// non-merged case - use the current state
node.symbol.constEnumOnlyModule = currentModuleIsConstEnumOnly;
}
else if (node.symbol.constEnumOnlyModule) {
// const only value module was merged with instantiated module - reset flag
node.symbol.constEnumOnlyModule = false;
else {
// merged case: module is const enum only if all its pieces are non-instantiated or const enum
node.symbol.constEnumOnlyModule = node.symbol.constEnumOnlyModule && currentModuleIsConstEnumOnly;
}
}
}
Expand Down Expand Up @@ -529,7 +530,7 @@ module ts {
bindChildren(node, 0, /*isBlockScopeContainer*/ false);
break;
case SyntaxKind.ExportAssignment:
if ((<ExportAssignment>node).expression.kind === SyntaxKind.Identifier) {
if ((<ExportAssignment>node).expression && (<ExportAssignment>node).expression.kind === SyntaxKind.Identifier) {
// An export default clause with an identifier exports all meanings of that identifier
declareSymbol(container.symbol.exports, container.symbol, <Declaration>node, SymbolFlags.Alias, SymbolFlags.PropertyExcludes | SymbolFlags.AliasExcludes);
}
Expand Down
Loading