Commit Graph

  • 0e9e4ab737 More unused variables in services.ts Dick van den Brink 2014-11-08 18:36:55 +01:00
  • 7cc4db2a1d Removed some unused private functions Dick van den Brink 2014-11-08 16:48:00 +01:00
  • 96181c9c53 Removed some unused variables Dick van den Brink 2014-11-08 16:30:56 +01:00
  • e57a11253a Fixed some methods using the wrong start time Dick van den Brink 2014-11-08 16:18:42 +01:00
  • 07469fb306 do not descend into child nodes if child does not overlap with target span Vladimir Matveev 2014-11-08 00:10:30 -08:00
  • aafc54ed20 code cleanup: removed redundant check Vladimir Matveev 2014-11-07 18:50:59 -08:00
  • ae034d4fbd code cleanup: fix typo in formatting scanner, removed explicit indentation for comments, invert conditions to reduce nesting Vladimir Matveev 2014-11-07 18:43:48 -08:00
  • c7acb6c2c4 A few touch-ups to the code. Daniel Rosenwasser 2014-11-07 18:10:38 -08:00
  • 1934193213 Support getOccurrences for modifier keywords. Daniel Rosenwasser 2014-11-07 17:56:39 -08:00
  • 8464785aaf code cleanup: simplify DynamicIndentation interface Vladimir Matveev 2014-11-07 17:15:46 -08:00
  • 6d353c078c Merge branch 'master' into taggedTemplates Daniel Rosenwasser 2014-11-07 16:24:40 -08:00
  • d99023ed98 Merge pull request #1094 from Microsoft/findAllRefsInTemplates Daniel Rosenwasser 2014-11-07 16:24:22 -08:00
  • 986a0b7343 Fixed issues with incomplete calls, cleaned some code up. Daniel Rosenwasser 2014-11-07 16:23:59 -08:00
  • c9919bb9ec Added baselines. Daniel Rosenwasser 2014-11-07 14:13:38 -08:00
  • 27c463e5f1 code cleanup: inline functions Vladimir Matveev 2014-11-07 13:43:30 -08:00
  • fc59045102 code cleanup: split function into three Vladimir Matveev 2014-11-07 13:34:51 -08:00
  • 0bacf8f80f Merge pull request #959 from Microsoft/refactorRefFilesPath Yui 2014-11-07 13:30:43 -08:00
  • dbcb6dc01e Corrected isExpression for templates. Daniel Rosenwasser 2014-11-07 13:29:59 -08:00
  • dc3c5c52f3 Merge branch 'master' into refactorRefFilesPath Yui T 2014-11-07 13:11:05 -08:00
  • d634ab8ceb Merge pull request #1089 from Microsoft/completionEntryOfImport Sheetal Nandi 2014-11-07 12:57:52 -08:00
  • b47c7693b2 Merge pull request #1086 from Microsoft/jsDocCommentLinePreservation Sheetal Nandi 2014-11-07 12:32:25 -08:00
  • 3c600608d3 Test now covers completion entry at name of the import when there is no name and there is name Sheetal Nandi 2014-11-07 12:32:08 -08:00
  • b743a50677 Simplified while loop as per code review feedback Sheetal Nandi 2014-11-07 12:19:06 -08:00
  • 0443b259e3 Merge pull request #1087 from Microsoft/crashInGetCompilerOptionsDiagnostics Sheetal Nandi 2014-11-07 11:18:04 -08:00
  • f81a05a362 Merge pull request #1090 from Microsoft/completionAfterAt Sheetal Nandi 2014-11-07 11:17:01 -08:00
  • 7ad377f3bb Merge pull request #1088 from Microsoft/completionListOfVarFromUnionOfModuleType Sheetal Nandi 2014-11-07 11:16:15 -08:00
  • 35facf591e Merge branch 'master' into refactorRefFilesPath Yui T 2014-11-07 10:23:31 -08:00
  • 3d3212b8aa Adding binding patterns to declaration names Anders Hejlsberg 2014-11-07 06:50:19 -08:00
  • 4b19eb3e93 adjust delta when recomputing parent indentation Vladimir Matveev 2014-11-07 00:31:49 -08:00
  • 5acc1a1bd2 Fix the crash in completion entry by fixing the unknown token check Sheetal Nandi 2014-11-06 19:51:00 -08:00
  • 38f14b5b1d Block completion list on import declaration name and fix the crash in symbol display name when import declaration is incomplete Sheetal Nandi 2014-11-06 19:37:05 -08:00
  • 127aa49e55 Fix the union property kind if the property is union of exported variable of module Fixes #929 Sheetal Nandi 2014-11-06 19:18:20 -08:00
  • 28fa6029eb Fix the crash in getCompilerOptionsDiagnostics by not using file name as compiler options do not have file name Fixes #988 Sheetal Nandi 2014-11-06 19:00:44 -08:00
  • bfca3c5548 Fix the line preservation between jsdoc comments while displaying it Sheetal Nandi 2014-11-06 18:49:05 -08:00
  • 62dd501a48 code cleanup: remove unused arguments Vladimir Matveev 2014-11-06 18:37:44 -08:00
  • 8ab038f1a3 Fixed the merge conflicts that went undetected in github Sheetal Nandi 2014-11-06 18:02:29 -08:00
  • 098f6c3958 Use the new beta build env on Travis Josh Kalderimis 2014-11-07 15:00:52 +13:00
  • 7e595f4701 code cleanup: inline functions Vladimir Matveev 2014-11-06 18:00:15 -08:00
  • 80b8062a01 Addressed CR feedback. Daniel Rosenwasser 2014-11-06 17:58:21 -08:00
  • 91065ec92c removed duplicate code Vladimir Matveev 2014-11-06 17:55:45 -08:00
  • beef2ebbe6 Merge pull request #1079 from Microsoft/showNarrowedType Sheetal Nandi 2014-11-06 17:17:51 -08:00
  • 9e2eb3bc03 Merge pull request #1058 from Microsoft/contextualUnionTypeConformance Sheetal Nandi 2014-11-06 16:25:40 -08:00
  • 727f36ad02 Merge pull request #1080 from Microsoft/breakpointTypeAlias Sheetal Nandi 2014-11-06 16:24:56 -08:00
  • b277565c1f Merge pull request #1081 from Microsoft/breakpointsLetConst Sheetal Nandi 2014-11-06 16:24:43 -08:00
  • 048c7856cb Merge pull request #1040 from Microsoft/unionTypeInSignatureDisplay Sheetal Nandi 2014-11-06 16:24:09 -08:00
  • 364b63bd82 simplify formatting scanner Vladimir Matveev 2014-11-06 16:19:09 -08:00
  • e4c88eeae1 Breakpoint validation for Let and cost Sheetal Nandi 2014-11-06 15:49:59 -08:00
  • 6c9c502218 Merge branch 'master' into refactorRefFilesPath Yui T 2014-11-06 15:47:58 -08:00
  • 61c45816c4 Type aliases cannot have breakpoints Sheetal Nandi 2014-11-06 15:40:28 -08:00
  • 1e4f0b81fa Verify breakpoints in type alias syntax Sheetal Nandi 2014-11-06 15:38:47 -08:00
  • b7b3506c59 change folder structure, move all new formatting related bits to 'format' folder Vladimir Matveev 2014-11-06 15:31:42 -08:00
  • 12370332a1 Show narrowed type in quickInfo/completion entry Fixes #927 Sheetal Nandi 2014-11-06 15:19:27 -08:00
  • 2d3752ea24 Merge branch 'master' into destructuring Anders Hejlsberg 2014-11-06 15:07:08 -08:00
  • 8a779e1e85 Basic typechecking and emitting for short hand property assignment Yui T 2014-11-04 14:43:43 -08:00
  • da314a3774 Merge pull request #1041 from Microsoft/declFilePrivateMethodOverload Sheetal Nandi 2014-11-06 14:54:06 -08:00
  • a01b44080c Rework tracking and error reporting related to widening of types Anders Hejlsberg 2014-11-06 14:15:36 -08:00
  • e79229b88d Update some documentation as per code review feedback Sheetal Nandi 2014-11-06 13:44:10 -08:00
  • 150e8d30d7 Store scanner position before create PropertyDeclaration node Yui T 2014-11-02 19:52:08 -08:00
  • 6aa9bd68f7 Merge branch 'master' into unionTypeInSignatureDisplay Sheetal Nandi 2014-11-06 13:37:18 -08:00
  • 52a8560298 Typeguards of form !expr • A type guard of the form !expr o when true, narrows the type of x by expr when false, or o when false, narrows the type of x by expr when true. Sheetal Nandi 2014-11-06 13:00:44 -08:00
  • c9a03dc659 Typeguards of form expr1 || expr2 • A type guard of the form expr1 || expr2 o when true, narrows the type of x to T1 | T2, where T1 is the type of x narrowed by expr1 when true, and T2 is the type of x narrowed by expr1 when false and then by expr2 when true, or o when false, narrows the type of x by expr1 when false and then by expr2 when false. Sheetal Nandi 2014-11-06 13:00:20 -08:00
  • 486d37ec90 TypeGuard of for expr1 && expr2 • A type guard of the form expr1 && expr2 o when true, narrows the type of x by expr1 when true and then by expr2 when true, or o when false, narrows the type of x to T1 | T2, where T1 is the type of x narrowed by expr1 when false, and T2 is the type of x narrowed by expr1 when true and then by expr2 when false. Sheetal Nandi 2014-11-06 12:59:42 -08:00
  • 7ebf5371a5 Test cases for typeguards of form typeof x === s and typeof x !== s • A type guard of the form typeof x === s, where s is a string literal with the value ‘string’, ‘number’, or ‘boolean’, o when true, narrows the type of x to the given primitive type, or o when false, removes the primitive type from the type of x. • A type guard of the form typeof x === s, where s is a string literal with any value but ‘string’, ‘number’, or ‘boolean’, o when true, removes the primitive types string, number, and boolean from the type of x, or o when false, has no effect on the type of x. • A type guard of the form typeof x !== s, where s is a string literal, o when true, narrows the type of x by typeof x === s when false, or o when false, narrows the type of x by typeof x === s when true. Sheetal Nandi 2014-11-05 18:31:38 -08:00
  • 5961ed7154 Test typeguard of form instance of • A type guard of the form x instanceof C, where C is of a subtype of the global type ‘Function’ and C has a property named ‘prototype’ o when true, narrows the type of x to the type of the ‘prototype’ property in C provided it is a subtype of the type of x, or o when false, has no effect on the type of x. Sheetal Nandi 2014-11-05 18:50:43 -08:00
  • 2fecc132ab Tests for typeguards allowed on variables and parameters only From spec: Note that type guards affect types of variables and parameters only and have no effect on members of objects such as properties Sheetal Nandi 2014-11-05 17:16:44 -08:00
  • 33cdc2f876 Type guards in || operator • In the right operand of a || operation, the type of a variable or parameter is narrowed by any type guard in the left operand when false, provided the right operand contains no assignments to the variable or parameter. Sheetal Nandi 2014-11-05 16:04:06 -08:00
  • 11912e8fde TypeGuards in right operand of && operation • In the right operand of a && operation, the type of a variable or parameter is narrowed by any type guard in the left operand when true, provided the right operand contains no assignments to the variable or parameter. Sheetal Nandi 2014-11-05 15:55:30 -08:00
  • 55952af304 Tests for conditional expression typeguards • In the true expression of a conditional expression, the type of a variable or parameter is narrowed by any type guard in the condition when true, provided the expression contains no assignments to the variable or parameter. • In the false expression of a conditional expression, the type of a variable or parameter is narrowed by any type guard in the condition when false, provided the expression contains no assignments to the variable or parameter. Sheetal Nandi 2014-11-05 14:47:05 -08:00
  • 4b3d603f24 Test cases for typeguards are scoped at function /module block Sheetal Nandi 2014-11-05 14:21:32 -08:00
  • 2088a89223 Test cases to make sure typeguard is defeated in case of function calls From spec: Also note that it is possible to defeat a type guard by calling a function that changes the type of the guarded variable. Sheetal Nandi 2014-11-05 14:12:29 -08:00
  • e79bec5cbf TypeGuards narrow types in if statement works per spec: Sheetal Nandi 2014-11-05 14:12:19 -08:00
  • 2145b2f445 Merge pull request #1071 from Microsoft/computedPropertyName Jason Freeman 2014-11-06 12:05:48 -08:00
  • 5164fbc3bd Merge branch 'master' into computedPropertyName Jason Freeman 2014-11-06 11:52:19 -08:00
  • 279166be50 Address feedback Jason Freeman 2014-11-06 11:51:49 -08:00
  • c3a88d3482 code cleanup: replace nulls with undefined vladima 2014-11-06 11:10:27 -08:00
  • ace99ad051 code cleanup, removed unused files vladima 2014-11-06 10:57:19 -08:00
  • bbc2da79bb return last scanned token if possible vladima 2014-11-06 00:37:58 -08:00
  • 147550e2d3 Merge pull request #1065 from Microsoft/shorthandProperties CyrusNajmabadi 2014-11-05 22:53:43 -08:00
  • 154977ce95 add child delta for all nodes Vladimir Matveev 2014-11-05 19:35:53 -08:00
  • 652b7f8909 Corrected comment. Daniel Rosenwasser 2014-11-05 18:34:53 -08:00
  • bcddb101aa Proper type arg inference with apppropriate overload res tests. Daniel Rosenwasser 2014-11-05 18:20:40 -08:00
  • bc70e4a29d Make certain types of FunctionLike require block bodies Jason Freeman 2014-11-05 18:04:19 -08:00
  • 6c85dbe140 Refactor Declaration.name into Identifier | ComputedPropertyName Jason Freeman 2014-11-05 12:50:30 -08:00
  • edbb99d959 merge with master Vladimir Matveev 2014-11-05 17:34:42 -08:00
  • 13054710c7 track effective parent indentation for list items Vladimir Matveev 2014-11-05 17:07:47 -08:00
  • 680b59481b fix indentation for nested items Vladimir Matveev 2014-11-05 15:35:18 -08:00
  • 9a30fa882b do not indent tokens with errors Vladimir Matveev 2014-11-05 15:29:51 -08:00
  • f28c1a3498 fix indentations in functions Vladimir Matveev 2014-11-05 15:23:11 -08:00
  • fea1165186 Merge branch 'master' into taggedTemplates Daniel Rosenwasser 2014-11-05 14:06:19 -08:00
  • 356622c8e9 Merge pull request #1067 from Microsoft/deduplicateTypeNotAssignableMessage Daniel Rosenwasser 2014-11-05 12:48:57 -08:00
  • e12e31b144 Removed duplicate diagnostic. Daniel Rosenwasser 2014-11-05 12:26:03 -08:00
  • 86f290fbb9 Initial parser support for destructuring patterns Anders Hejlsberg 2014-11-05 06:21:58 -08:00
  • bea124b217 Simplify code. Cyrus Najmabadi 2014-11-05 04:07:53 -08:00
  • 1a1c9ace8a Add support for parsing computed property names. Cyrus Najmabadi 2014-11-05 03:48:07 -08:00
  • cb97682d83 Add the IPropertyNameSyntax. Cyrus Najmabadi 2014-11-05 00:50:11 -08:00
  • 39daf6cfbe Merge pull request #1060 from Microsoft/classifyKeywordsWithoutSyntacticClassifier Daniel Rosenwasser 2014-11-04 23:44:33 -08:00
  • ae87b08e33 Add support for parsing shorthand property assignments. Cyrus Najmabadi 2014-11-04 22:34:59 -08:00
  • fff8ef8b84 Merge pull request #1063 from Microsoft/nodeCleanup CyrusNajmabadi 2014-11-04 23:03:13 -08:00
  • 5952036e2c Remove unnecessary brand. Cyrus Najmabadi 2014-11-04 21:13:58 -08:00
  • 3753058874 Add an IAccessorSyntax interface. Cyrus Najmabadi 2014-11-04 21:09:50 -08:00