@@ -55,7 +55,7 @@ define(function (require, exports, module) {
5555 /**
5656 * Get the builtin libraries tern is using.
5757 *
58- * @return {Array.<string > } - array of library names.
58+ * @return {Array.<String > } - array of library names.
5959 * @private
6060 */
6161 Session . prototype . _getBuiltins = function ( ) {
@@ -70,7 +70,7 @@ define(function (require, exports, module) {
7070 /**
7171 * Get the name of the file associated with the current session
7272 *
73- * @return {string } - the full pathname of the file associated with the
73+ * @return {String } - the full pathname of the file associated with the
7474 * current session
7575 */
7676 Session . prototype . getPath = function ( ) {
@@ -90,7 +90,7 @@ define(function (require, exports, module) {
9090 * Get the text of a line.
9191 *
9292 * @param {number } line - the line number
93- * @return {string } - the text of the line
93+ * @return {String } - the text of the line
9494 */
9595 Session . prototype . getLine = function ( line ) {
9696 var doc = this . editor . document ;
@@ -210,7 +210,7 @@ define(function (require, exports, module) {
210210 *
211211 * @param {{line: number, ch: number} } cursor - cursor position after
212212 * which a token should be retrieved
213- * @param {boolean } skipWhitespace - true if this should skip over whitespace tokens
213+ * @param {Boolean } skipWhitespace - true if this should skip over whitespace tokens
214214 * @return {Object } - the CodeMirror token after the one at the given
215215 * cursor position
216216 */
@@ -238,11 +238,11 @@ define(function (require, exports, module) {
238238 } ;
239239
240240 /**
241- * Calculate a query string relative to the current cursor position
242- * and token. E.g., from a state "identi< cursor> er", the query string is
241+ * Calculate a query String relative to the current cursor position
242+ * and token. E.g., from a state "identi-- cursor-- er", the query String is
243243 * "identi".
244244 *
245- * @return {string } - the query string for the current cursor position
245+ * @return {String } - the query String for the current cursor position
246246 */
247247 Session . prototype . getQuery = function ( ) {
248248 var cursor = this . getCursor ( ) ,
@@ -275,7 +275,7 @@ define(function (require, exports, module) {
275275 * at which context information is to be retrieved
276276 * @param {number= } depth - the current depth of the parenthesis stack, or
277277 * undefined if the depth is 0.
278- * @return {string } - the context for the property that was looked up
278+ * @return {String } - the context for the property that was looked up
279279 */
280280 Session . prototype . getContext = function ( cursor , depth ) {
281281 var token = this . getToken ( cursor ) ;
@@ -342,7 +342,7 @@ define(function (require, exports, module) {
342342 /**
343343 * Determine if the caret is either within a function call or on the function call itself.
344344 *
345- * @return {{inFunctionCall: boolean , functionCallPos: {line: number, ch: number}} }
345+ * @return {{inFunctionCall: Boolean , functionCallPos: {line: number, ch: number}} }
346346 * inFunctionCall - true if the caret if either within a function call or on the
347347 * function call itself.
348348 * functionCallPos - the offset of the '(' character of the function call if inFunctionCall
@@ -385,7 +385,7 @@ define(function (require, exports, module) {
385385 * Test is a lexical state is in a function call.
386386 *
387387 * @param {Object } lex - lexical state.
388- * @return {Object | boolean }
388+ * @return {Object | Boolean }
389389 *
390390 */
391391 function isInFunctionalCall ( lex ) {
@@ -453,10 +453,9 @@ define(function (require, exports, module) {
453453 * Get the type of the current session, i.e., whether it is a property
454454 * lookup and, if so, what the context of the lookup is.
455455 *
456- * @return {{property: boolean,
457- context: string} - an Object consisting
458- * of a {boolean} "property" that indicates whether or not the type of
459- * the session is a property lookup, and a {string} "context" that
456+ * @return {{property: Boolean, context: String} } - an Object consisting
457+ * of a {Boolean} "property" that indicates whether or not the type of
458+ * the session is a property lookup, and a {String} "context" that
460459 * indicates the object context (as described in getContext above) of
461460 * the property lookup, or null if there is none. The context is
462461 * always null for non-property lookups.
@@ -485,8 +484,8 @@ define(function (require, exports, module) {
485484 } ;
486485 } ;
487486
488- // Comparison function used for sorting that does a case-insensitive string
489- // comparison on the "value" field of both objects. Unlike a normal string
487+ // Comparison function used for sorting that does a case-insensitive String
488+ // comparison on the "value" field of both objects. Unlike a normal String
490489 // comparison, however, this sorts leading "_" to the bottom, given that a
491490 // leading "_" usually denotes a private value.
492491 function penalizeUnderscoreValueCompare ( a , b ) {
@@ -510,11 +509,11 @@ define(function (require, exports, module) {
510509 * Retrieves a list of hints for the current session based on the current scope
511510 * information.
512511 *
513- * @param {string } query - The query prefix used to filter hints.
512+ * @param {String } query - The query prefix used to filter hints.
514513 * @param {StringMatcher } matcher - The class used to find query matches and sort the results.
515- * @return {{hints: Array<string >, needGuesses: boolean } } An object containing:
514+ * @return {{hints: Array<String >, needGuesses: Boolean } } An object containing:
516515 * - `hints`: An array of matching hints.
517- * - `needGuesses`: A boolean indicating whether the caller needs to request guesses and call getHints again.
516+ * - `needGuesses`: A Boolean indicating whether the caller needs to request guesses and call getHints again.
518517 */
519518 Session . prototype . getHints = function ( query , matcher ) {
520519
@@ -531,7 +530,7 @@ define(function (require, exports, module) {
531530 /**
532531 * Is the origin one of the builtin files.
533532 *
534- * @param {string } origin
533+ * @param {String } origin
535534 */
536535 function isBuiltin ( origin ) {
537536 return builtins . indexOf ( origin ) !== - 1 ;
@@ -628,9 +627,7 @@ define(function (require, exports, module) {
628627
629628 /**
630629 * Set a new function type hint.
631- *
632- * @param {Array<{name: string, type: string, isOptional: boolean}> } newFnType -
633- * Array of function hints.
630+ * @param {{name: String, type: String, isOptional: Boolean[]} } newFnType - Array of function hints
634631 */
635632 Session . prototype . setFnType = function ( newFnType ) {
636633 this . fnType = newFnType ;
@@ -649,7 +646,7 @@ define(function (require, exports, module) {
649646 * Get the function type hint. This will format the hint, showing the
650647 * parameter at the cursor in bold.
651648 *
652- * @return {{parameters: Array<{name: string , type: string , isOptional: boolean }>,
649+ * @return {{parameters: Array<{name: String , type: String , isOptional: Boolean }>,
653650 * currentIndex: number }} An Object where the
654651 * "parameters" property is an array of parameter objects;
655652 * the "currentIndex" property index of the hint the cursor is on, may be
@@ -746,15 +743,15 @@ define(function (require, exports, module) {
746743 /**
747744 * Get the javascript text of the file open in the editor for this Session.
748745 * For a javascript file, this is just the text of the file. For an HTML file,
749- * this will be only the text in the < script> tags. This is so that we can pass
746+ * this will be only the text in the script tags. This is so that we can pass
750747 * just the javascript text to tern, and avoid confusing it with HTML tags, since it
751748 * only knows how to parse javascript.
752- * @return {string } - the "javascript" text that can be sent to Tern.
749+ * @return {String } - the "javascript" text that can be sent to Tern.
753750 */
754751 Session . prototype . getJavascriptText = function ( ) {
755752 if ( LanguageManager . getLanguageForPath ( this . editor . document . file . fullPath ) . getId ( ) === "html" ) {
756753 // HTML file - need to send back only the bodies of the
757- // < script> tags
754+ // script tags
758755 var text = "" ,
759756 editor = this . editor ,
760757 scriptBlocks = HTMLUtils . findBlocks ( editor , "javascript" ) ;
@@ -792,7 +789,7 @@ define(function (require, exports, module) {
792789 * parameter declarations, but we can tell those from the token itself rather than having
793790 * to look at previous tokens.
794791 *
795- * @return {boolean } - true if the current cursor position is in the name of a function
792+ * @return {Boolean } - true if the current cursor position is in the name of a function
796793 * declaration.
797794 */
798795 Session . prototype . isFunctionName = function ( ) {
0 commit comments