Commit Graph
821 Commits
Author SHA1 Message Date
Cyrus Najmabadi 45c3dffd4e Slightly speed up marking by avoiding calling fullStart on so many nodes and tokens. 2014-11-21 15:59:21 -08:00
Cyrus Najmabadi 3c3e3b23dd Always mark nodes and tokens that cross the edited range. 2014-11-21 15:59:12 -08:00
Cyrus Najmabadi 6afd5e4ad2 Simplify incremental code. 2014-11-21 15:59:00 -08:00
Cyrus Najmabadi 19198256fb Simplify parser initializer. 2014-11-21 15:58:48 -08:00
Cyrus Najmabadi c6088ce683 Fix interface. 2014-11-21 15:58:35 -08:00
Cyrus Najmabadi 161dc656cb Simplify incremental parsing by moving old source tree nodes before doing anything. 2014-11-21 15:58:12 -08:00
Sheetal Nandi 28c41e869a Merge branch 'master' into constLet 2014-11-20 21:06:08 -08:00
Sheetal Nandi c4a49acd8e Merge remote-tracking branch 'origin/release-1.3' 2014-11-20 20:38:25 -08:00
Sheetal Nandi 3af2c29e83 Merge branch 'release-1.3' 2014-11-20 20:26:28 -08:00
Sheetal Nandi 77572dab0c Merge remote-tracking branch release-1.3 2014-11-20 20:24:08 -08:00
Sheetal Nandi 0762e55286 Merge branch 'master' into constLet 2014-11-20 17:27:39 -08:00
Sheetal Nandi 51017cdd11 Merge pull request #1140 from Microsoft/signatureInfoApiRemoval
Remove the Obsolete api getSignatureAtPosition
2014-11-20 17:13:23 -08:00
Sheetal Nandi 4320c67a38 Merge branch 'master' into constLet 2014-11-20 16:56:14 -08:00
CyrusNajmabadi 4fb04c72c3 Merge pull request #1230 from Microsoft/removeImpls
Remove unnecessary 'do nothing' implementations in SourceFileObject.
2014-11-20 16:47:27 -08:00
Sheetal Nandi 302c246934 Merge branch 'master' into signatureInfoApiRemoval 2014-11-20 16:47:14 -08:00
Cyrus Najmabadi da3ae32b6a Merge branch 'master' of https://github.com/Microsoft/TypeScript 2014-11-20 16:40:16 -08:00
Cyrus Najmabadi 598fb71fe9 Remove unnecessary 'do nothing' implementations in SourceFileObject. 2014-11-20 16:32:13 -08:00
Cyrus Najmabadi b8a8c35f3f Have the parser give real positions for empty tokens.
Previously this was difficult because we didn't know where empty tokens
would go due to the presense of skipped tokens.  Thanks to the recent
work i did to place skipped tokens on the *next* real token we hit, this
became much simpler.
2014-11-20 16:21:04 -08:00
Sheetal Nandi ff23748908 Merge pull request #1131 from Microsoft/relativePathReferenceResolution
Fix the relative path reference resolution
2014-11-20 15:59:06 -08:00
Cyrus Najmabadi f605699604 Merge branch 'master' into grammarChecks
Conflicts:
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
2014-11-19 17:29:39 -08:00
Paul van Brenk 629ea86043 Updated test case and added comment 2014-11-19 15:05:07 -08:00
Cyrus Najmabadi f634bc19d8 Expose parse errors and grammar errors off the source file. 2014-11-19 14:29:20 -08:00
unknown c2f253f4aa Fix for crash in QuickInfo on module path in import statement. 2014-11-19 13:19:00 -08:00
Sheetal Nandi 264bd5db7c Merge branch 'master' into relativePathReferenceResolution 2014-11-19 13:11:17 -08:00
Vladimir Matveev 80abd1e115 Merge pull request #1208 from Microsoft/indentation_nested_scopes
Fix indentation when multiple nested scopes are involved
2014-11-18 22:29:32 -08:00
Vladimir Matveev 447361cba7 fix getContainingList to use rangeContainsStartEnd function 2014-11-18 20:55:54 -08:00
Yui T df54db758a Merge branch 'master' into usingShorthand
Conflicts:
	bin/tsc.js
	bin/typescriptServices.js
	src/compiler/parser.ts
2014-11-18 18:25:51 -08:00
Yui T c417df4306 Remove unused getImplementorAtPosition 2014-11-18 17:54:39 -08:00
Yui T 970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Cyrus Najmabadi 00a49536fe Initial refactoring to support doing grammar checks as a separate pass of the tree.
Right now, this means hiding 'syntacticDiagnostics' behind a getter function that
only computes all the syntactic diagnostics (parser+grammar checks) lazily.

This will help incremental parsing out as we can reuse nodes that have grammar
errors in them, and we dont' have to even do grammar checks if this is not the
full-type-check type-checker.
2014-11-18 15:51:55 -08:00
Yui T 1d78406bf8 Refactoring language service to use short-hand 2014-11-18 14:08:42 -08:00
Mohamed Hegazy 22e2bde7e9 Merge pull request #1158 from gisenberg/master
Adding support for named AMD modules.
2014-11-18 12:18:48 -08:00
Yui T 5844f68040 Address code review 2014-11-18 10:53:14 -08:00
Yui T e6a1ac14bb Merge branch 'master' into gotoDefShorthand 2014-11-18 09:45:57 -08:00
CyrusNajmabadi 50ddfb727c Merge pull request #1189 from Microsoft/incrementalRegex
Simplify how regexs are incrementally parsed.
2014-11-17 18:38:24 -08:00
Cyrus Najmabadi 7dd30d32fe Simplify how regexs are incrementally parsed.
Conflicts:
	tests/Fidelity/incremental/IncrementalParserTests.ts
	tests/Fidelity/parser/ecmascript5/MissingTokens/MissingToken2.ts.expected
	tests/Fidelity/parser/ecmascript5/RegressionTests/645086_1.ts.expected
	tests/Fidelity/parser/ecmascript5/RegressionTests/645086_2.ts.expected
	tests/Fidelity/parser/ecmascript5/RegularExpressions/RegularExpressionDivideAmbiguity4.ts.expected
	tests/Fidelity/parser/ecmascript5/SyntaxWalker.generated.ts.expected
	tests/Fidelity/program.js
	tests/Fidelity/program.js.map
	tests/Fidelity/scanner/ecmascript5/StringLiterals.ts.expected
	tests/Fidelity/test262/suite/ch07/7.3/S7.3_A2.1_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.3/S7.3_A2.2_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.4/S7.4_A3.js.expected
	tests/Fidelity/test262/suite/ch07/7.4/S7.4_A4_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.4/S7.4_A4_T4.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A1.1_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A1.1_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A1.2_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A1.2_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A3.1_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A3.1_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A3.2_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.4/S7.8.4_A3.2_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A1.2_T2.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A1.3_T3.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A1.5_T3.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A2.2_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A2.3_T3.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T1.js.expected
	tests/Fidelity/test262/suite/ch07/7.8/7.8.5/S7.8.5_A2.5_T3.js.expected
	tests/Fidelity/test262/suite/ch08/8.4/S8.4_A13_T1.js.expected
	tests/Fidelity/test262/suite/ch08/8.4/S8.4_A13_T2.js.expected
	tests/Fidelity/test262/suite/ch08/8.4/S8.4_A14_T1.js.expected
	tests/Fidelity/test262/suite/ch08/8.4/S8.4_A14_T2.js.expected
2014-11-17 17:59:28 -08:00
Vladimir Matveev ced8785bd3 eliminate usage of TypeScript module from services layer 2014-11-17 17:01:23 -08:00
Vladimir Matveev d225035622 cut usage of the old tree from the services layer 2014-11-17 15:57:40 -08:00
Yui T d52b096d55 go-to-definition with test cases 2014-11-17 14:27:14 -08:00
Yui T 1b66ee6f3a Merge branch 'master' into shorthandProperty
Conflicts:
	src/compiler/checker.ts
2014-11-17 11:35:02 -08:00
Vladimir Matveev 9a5df8585b scan starting from the beginning of target span 2014-11-14 22:34:36 -08:00
Vladimir Matveev 4609d242cf formatting: handle templates spans 2014-11-14 14:36:52 -08:00
Vladimir Matveev 23e35bcfc1 Merge branch 'master' into formatting_scanner 2014-11-14 11:01:17 -08:00
Vladimir Matveev 9e9f94abbb code cleanup: added comments 2014-11-14 11:00:28 -08:00
Yui T 8bd7aae869 Add comment and clean up implementation on findAllReferences 2014-11-13 17:50:34 -08:00
CyrusNajmabadi bc40997aed Merge pull request #1129 from Microsoft/yieldExpressions
Parsing support (including incremental parsing) for 'yield' expressions.
2014-11-13 16:44:29 -08:00
Yui T a8ebdf0cbd Address code review 2014-11-13 12:02:13 -08:00
Cyrus Najmabadi f7890d4ddb When entering a type context, 'yield' should be allowed (as long as you're not in strict mode). 2014-11-12 19:09:09 -08:00
Sheetal Nandi 0877a650c3 Code review feedback 2014-11-12 18:42:31 -08:00
Cyrus Najmabadi 9e273ddb78 Add support for [GeneratorParameter] grammar parameter. 2014-11-12 18:10:36 -08:00