mirror of
https://github.com/RustyRaptor/brackets.git
synced 2026-12-04 00:15:22 -07:00
Add HintUtil2.formatParameterHint and fix bugs
This commit is contained in:
1 parent
adb56c0b58
commit
8ae1abe419
8 files changed
+283
-362
No files matched your search
+27
-5
@@ -164,19 +164,16 @@ require(["MyModule"], function (myModule) {
|
||||
/**
|
||||
* Test record type google annoations.
|
||||
*
|
||||
* @param {{line: number, type: string}} t
|
||||
* @param {{index: number, type: string}} t
|
||||
*/
|
||||
function testRecordTypeAnnotation(t) {
|
||||
'use strict';
|
||||
|
||||
}
|
||||
|
||||
// Function hint testing
|
||||
// More parameter hint testing
|
||||
function functionHintTesting() {
|
||||
"use strict";
|
||||
|
||||
// simple function with primative arguments
|
||||
s.lastIndexOf(s);
|
||||
|
||||
// function with record type argument
|
||||
testRecordTypeAnnotation();
|
||||
@@ -187,10 +184,35 @@ function functionHintTesting() {
|
||||
// function with array argument
|
||||
arr.concat();
|
||||
|
||||
s.lastIndexOf(s, 5);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Test Array annotation
|
||||
*
|
||||
* @param {Array.<string>} a
|
||||
*/
|
||||
function testArrayAnnotation(a) {
|
||||
"use strict";
|
||||
|
||||
}
|
||||
|
||||
testArrayAnnotation();
|
||||
|
||||
/**
|
||||
* Test multiple optional args
|
||||
*
|
||||
* @param {string=} a
|
||||
* @param {string=} b
|
||||
*
|
||||
*/
|
||||
function testOptionalArgs(a, b) {
|
||||
"use strict";
|
||||
|
||||
}
|
||||
|
||||
testOptionalArgs();
|
||||
/* Add large comment to make this test over 250 lines which will trigger
|
||||
* partial updates to be used.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user