Skip to content

Commit f9441c3

Browse files
committed
IDE directories update
1 parent 90354a9 commit f9441c3

File tree

6 files changed

+1179
-1753
lines changed

6 files changed

+1179
-1753
lines changed

tests/tools/IDEDictionaries/Application.cfc renamed to tests/tools/IDEDictionaries/Application.bx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
component {
1+
class {
22

33
this.name = "Builder Dictionaries";
44

@@ -11,5 +11,6 @@ component {
1111

1212
// ColdBox Root path
1313
this.mappings[ "/coldbox" ] = rootPath;
14+
this.mappings[ "/testbox" ] = expandPath( "../../../testbox");
1415

1516
}

tests/tools/IDEDictionaries/ColdBox.sublime-completions

Lines changed: 1156 additions & 1376 deletions
Large diffs are not rendered by default.

tests/tools/IDEDictionaries/Sublime.cfc renamed to tests/tools/IDEDictionaries/Sublime.bx

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
component {
1+
class {
22

33
variables.ignoreMethods = "init,$init,configure";
44
variables.outFile = "ColdBox.sublime-completions";
55

6+
function main( args= [] ){
7+
println( "********************************************" );
8+
println( "Starting ColdBox Sublime Completions Generator..." );
9+
println( "********************************************" );
10+
// Run the generator
11+
run();
12+
println( "********************************************" );
13+
println( "ColdBox Sublime Completions Generator Finished!" );
14+
println( "********************************************" );
15+
}
16+
617
/**
718
* Generate the ColdBox Sublime Completions
819
*/
@@ -15,16 +26,15 @@ component {
1526
" );
1627

1728
// Transpile Globals + Scopes
29+
println( "√ Transpiling Global Scopes..." )
1830
out.append( transpileGlobals() );
1931
out.append( "," );
32+
println( "√ Transpiling Normal Scopes..." )
2033
out.append( transpileScopes() );
21-
2234
// Close it out
2335
out.append( "]}" );
24-
2536
// Write it out
2637
fileWrite( variables.outFile, out.toString() );
27-
2838
// Return data
2939
return out.toString();
3040
}
@@ -38,18 +48,19 @@ component {
3848
"BaseSpec" : "testbox.system.BaseSpec"
3949
}
4050
// discover each components' function collection
41-
.map( ( k, v ) => getComponentMetadata( v ).functions )
51+
.map( ( k, v ) => getClassMetadata( v ).functions )
4252
// process each function set
43-
.map( ( cfcName, functions ) => {
53+
.map( ( className, functions ) => {
54+
println( "√ Transpiling [#className#]..." );
4455
return functions
4556
// Ignore reserved methods
4657
.filter( ( thisFunction ) => !listFindNoCase( variables.ignoreMethods, thisFunction.name ) )
4758
// Transpile function and parameters
4859
.map( ( thisFunction ) => {
49-
var fwName = ( findNoCase( "BaseSpec", cfcName ) ? "TestBox" : "ColdBox" );
60+
var fwName = ( findNoCase( "BaseSpec", className ) ? "TestBox" : "ColdBox" );
5061
return
5162
"{
52-
""trigger"": ""#thisFunction.name#\tfn. (#fwName#:#cfcName#)"",
63+
""trigger"": ""#thisFunction.name#\tfn. (#fwName#:#className#)"",
5364
""contents"": ""#thisFunction.name#(#processParams( thisFunction.parameters )# )""
5465
}";
5566
})
@@ -63,7 +74,6 @@ component {
6374
}, [] )
6475
// Flatten it
6576
.toList();
66-
;
6777
}
6878

6979
private function processParams( parameters ){
@@ -102,9 +112,10 @@ component {
102112
"assert" : "testbox.system.Assertion"
103113
}
104114
// discover each components' function collection
105-
.map( ( k, v ) => getComponentMetadata( v ).functions )
115+
.map( ( k, v ) => getClassMetadata( v ).functions )
106116
// process each function set
107117
.map( ( thisScope, functions ) => {
118+
println( "√ Processing Scope [#thisScope#]..." );
108119
return functions
109120
// Ignore reserved methods
110121
.filter( ( thisFunction ) => !listFindNoCase( variables.ignoreMethods, thisFunction.name ) )

tests/tools/IDEDictionaries/builderDictionary.cfm

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)