diff --git a/lib/compiler/binder.js.map b/lib/compiler/binder.js.map deleted file mode 100644 index 8315194..0000000 --- a/lib/compiler/binder.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"binder.js","sourceRoot":"","sources":["../../src/compiler/binder.ts"],"names":[],"mappings":";;AAGA,mCAAwH;AAExH,0DAA0D;AAE1D,4BAAmC,IAAU;IACzC,QAAQ,IAAI,CAAC,IAAI,EAAE;QACf;YACA;gBACI,OAAuB,IAAK,CAAC,QAAQ,CAAC;gBACtC,MAAM;aACT;QAED,mCAAoC;QACpC,mCAAoC;QACpC,iCAAkC;QAClC,oCAAqC;QACrC,mCAAoC;QACpC;YACA;gBACI,OAA6B,IAAK,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC7C,MAAM;aACT;QAED;YACA;gBACI,OAAO,UAAU,GAAiC,IAAK,CAAC,IAAI,CAAC,IAAI,CAAC;gBAClE,MAAM;aACT;QAED;YACA;gBACI,MAAM,IAAI,GAAsB,IAAI,CAAC;gBACrC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,yBAA6B,EAAE;oBACnD,OAAuB,IAAI,CAAC,UAAW,CAAC,IAAI,CAAC;iBAChD;qBACI;oBACD,sEAAsE;oBACtE,OAAO,MAAM,CAAC;iBACjB;gBACD,MAAM;aACT;KACJ;AACL,CAAC;AAtCD,gDAsCC;AAED,6EAA6E;AAC7E,+DAA+D;AAC/D,qBAAqB;AACrB,0CAA0C;AAC1C,sDAAsD;AACtD,YAAY;AACZ,QAAQ;AACR,qBAAqB;AACrB,IAAI;AAEJ,uBAA8B,IAAoB,EAAE,KAAY,EAAE,YAAqB;IACnF,IAAI,iBAAyB,CAAC;IAC9B,IAAI,UAAkB,CAAC;IACvB,IAAI,IAAY,CAAC;IAEjB,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAChC,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,aAAa,CAAC;KACxB;IAED,IAAI,YAAY,IAAI,YAAY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C;wBACpE,MAAM;qBACT;aACJ;SACJ;QAED,2IAA2I;QAC3I,IAAI,uBAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC5B,gBAAgB,GAAwB,IAAI,CAAC;SAChD;QACD,IAAI,yBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;YAC9B,YAAY,GAAmB,IAAI,CAAC;SACvC;QACD,oBAAY,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;QAEzC,YAAY,GAAG,WAAW,CAAC;QAC3B,gBAAgB,GAAG,eAAe,CAAC;IACvC,CAAC;AACL,CAAC;AArCD,wCAqCC;AAED,0BAAiC,UAAsB,EAAE,KAAY;IACjE,sBAAsB,YAAoB;QACtC,KAAK,MAAM,MAAM,IAAI,YAAY,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE;YAChD,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;gBACtD,OAAO,2BAAmB,CAAC,IAAI,CAAC,KAAK,UAAU,CAAC;YACpD,CAAC,CAAC,CAAC;YACH,IAAI,MAAM,CAAC,YAAY,CAAC,MAAM,EAAE;gBAC5B,YAAY,CAAC,MAAM,CAAC,CAAC;aACxB;iBACI;gBACD,YAAY,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;aACnD;SACJ;IACL,CAAC;IAED,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;AACpC,CAAC;AAhBD,4CAgBC"} \ No newline at end of file diff --git a/lib/compiler/checker.js.map b/lib/compiler/checker.js.map deleted file mode 100644 index 3056685..0000000 --- a/lib/compiler/checker.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checker.js","sourceRoot":"","sources":["../../src/compiler/checker.ts"],"names":[],"mappings":";;AACA,8BAA8B;AAC9B,6CAAsD;AACtD,mCAA0O;A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UAAmC,EAAE,OAAuB,EAAE,YAAsB,EAAE,QAAkB;QAC9H,IAAI,MAAiB,CAAC;QACtB,IAAI,UAAU,CAAC,IAAI,yBAA6B,EAAE;YAC9C,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,IAAI,UAAU,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;YACnE,IAAI,CAAC,MAAM,EAAE;gBACT,OAAO,SAAS,CAAC;aACpB;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEO,+CAA+C,CAAC,UAAuD;QAC3G,IAAI,mCAA2B,CAAC,UAAU,CAAC,EAAE;YACzC,UAAU,GAAgC,UAAU,CAAC,MAAM,CAAC;SAC/D;QAED,IAAI,UAAU,CAAC,IAAI,yBAA6B,EAAE;YAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1D;aACI,IAAI,UAAU,CAAC,IAAI,uCAA2C,EAAE;YACjE,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;YAC5C,IAAI,KAAK,CAAC,cAAc,EAAE;gBACtB,OAAO,KAAK,CAAC,cAAc,CAAC;aAC/B;YACD,IAAI,CAAC,6BAA6B,CAA8B,UAAU,CAAC,CAAC,MAAM,CAAC;YACnF,OAAO,KAAK,CAAC,cAAc,CAAC;SAC/B;IACL,CAAC;IAEM,mBAAmB,CAAC,IAAa;QACpC,QAAQ,IAAI,CAAC,IAAI,EAAE;YACf,0BAA8B;YAC9B;gBACI,OAAO,IAAI,CAAC,+CAA+C,CAA8C,IAAI,CAAC,CAAC;SACtH;IACL,CAAC;CACJ;AA9sBD,kCA8sBC"} \ No newline at end of file diff --git a/lib/compiler/diagnostics.js.map b/lib/compiler/diagnostics.js.map deleted file mode 100644 index 7cbd6d6..0000000 --- a/lib/compiler/diagnostics.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"diagnostics.js","sourceR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end of file diff --git a/lib/compiler/parser.js.map b/lib/compiler/parser.js.map deleted file mode 100644 index 50c85c8..0000000 --- a/lib/compiler/parser.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../src/compiler/parser.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAEjC,uCAAmD;AACnD,mCAAgM;AAChM,+CAAqD;AAErD,IAAW,cAOV;AAPD,WAAW,cAAc;IACrB,uEAAc,CAAA;IACd,yEAAe,CAAA;IACf,qEAAa,CAAA;IACb,+DAAU,CAAA;IACV,qEAAa,CAAA;IACb,iFAAmB,CAAA;AACvB,CAAC,EAPU,cAAc,KAAd,cAAc,QAOxB;AAED;IAwkCI;QArkCQ,mBAAc,GAAmB,CAAC,CAAC;QAskCvC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,CAAC,OAAgC,EAAE,GAAW,EAAE,MAAc,EAAE,EAAE;YACzF,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACP,CAAC;IArkCO,KAAK;QACT,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAEO,SAAS;QACb,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,YAAY,oCAAuC,EAAE;YAC7D,MAAM,YAAY,GAA0D,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;YAC5H,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YACxC,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;YAChD,IAAI,CAAC,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,YA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I,CAAC,CAAC;QAC3B,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC;QAEvB,IAAI,CAAC,UAAU,GAAqB,IAAI,CAAC,UAAU,uBAAwB,CAAC,CAAC,CAAC;QAC9E,IAAI,CAAC,UAAU,CAAC,eAAe,GAAG,IAAI,GAAG,EAA2D,CAAC;QACrG,IAAI,CAAC,UAAU,CAAC,gBAAgB,GAAG,EAAE,CAAC;QACtC,IAAI,CAAC,UAAU,CAAC,eAAe,GAAG,EAAE,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,8BAA8B,GAAG,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEpC,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,SAAS,yBAAgC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;QAE3G,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;QAE5B,6BAAqB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AAxmCD,wBAwmCC"} \ No newline at end of file diff --git a/lib/compiler/printer.js.map b/lib/compiler/printer.js.map deleted file mode 100644 index 1dfae1b..0000000 --- a/lib/compiler/printer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../src/compiler/printer.ts"],"names":[],"mappings":";;AACA,uCAA0C;AAC1C,mCAA8C;AAE9C;IAgRI;QA7QA,cAAS,GAAY,IAAI,CAAC;QA8QtB,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB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B,EAAE;oBACrB,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;iBACxC;aACJ;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAEO,KAAK;QACT,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACpB,CAAC;IAEO,KAAK;QACT,MAAM,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,SAAS,CAAC,IAAa;QAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAEM,SAAS,CAAC,UAAyB;QACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;CAKJ;AAnRD,0BAmRC"} \ No newline at end of file diff --git a/lib/compiler/scanner.js.map b/lib/compiler/scanner.js.map deleted file mode 100644 index b800164..0000000 --- a/lib/compiler/scanner.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../src/compiler/scanner.ts"],"names":[],"mappings":";;AAAA,mCAAmG;AAMnG,MAAM,gBAAgB,GAAoC,IAAI,GAAG,CAAC;IAC9D,CAAC,SAAS,0BAA4B;IACtC,CAAC,QAAQ,yBAA2B;IACpC,CAAC,QAAQ,yBAA2B;IACpC,CAAC,OAAO,wBAA0B;IAClC,CAAC,QAAQ,yBAA2B;IACpC,CAAC,OAAO,wBAA0B;IAClC,CAAC,UAAU,2BAA6B;IACxC,CAAC,QAAQ,yBAA2B;IACpC,CAAC,QAAQ,yBAA2B;IACpC,oCAAoC;IACpC,CAAC,SAAS,0BAA4B;IACtC,CAAC,KAAK,sBAAwB;IAC9B,CAAC,IAAI,qB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AO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;IAChC,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IAEM,UAAU;QACd,OAAO,IAAI,CAAC,OAAO,CAAC;IACvB,CAAC;CACJ;AAhkBD,0BAgkBC"} \ No newline at end of file diff --git a/lib/compiler/types.js.map b/lib/compiler/types.js.map deleted file mode 100644 index 86c5765..0000000 --- a/lib/compiler/types.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/compiler/types.ts"],"names":[],"mappings":";;AAAA,eAAe;AACf,IAAkB,cAsIjB;AAtID,WAAkB,cAAc;IAC5B,qEAAiB,CAAA;IACjB,+EAAwB,CAAA;IAExB,4DAAe,CAAA;IACf,wEAAqB,CAAA;IACrB,wEAAsB,CAAA;IACtB,kFAA2B,CAAA;IAC3B,6DAAiB,CAAA;IAEjB,+BAA+B;IAC/B,sDAAc,CAAA;IACd,6EAAyB,CAAA;IACzB,0DAAe,CAAA;IACf,0DAAe,CAAA;IACf,4DAAgB,CAAA;IAChB,4DAAgB,CAAA;IAChB,4EAAwB,CAAA;IACxB,0EAAuB,CAAA;IACvB,wEAAsB,CAAA;IACtB,oEAAoB,CAAA;IACpB,8EAAyB,CAAA;IACzB,gEAAkB,CAAA;IAClB,gEAAkB,CAAA;IAClB,0EAAuB,CAAA;IACvB,kFAA2B,CAAA;IAC3B,+EAAyB,CAAA;IACzB,gFAA0B,CAAA;IAC1B,wDAAc,CAAA;IAEd,8CAAQ,CA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A;IACzD,gDAAyB,CAAA;AAC7B,CAAC,EA9BiB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA8B1B;AA+CD,IAAkB,cAGjB;AAHD,WAAkB,cAAc;IAC5B,iEAA4C,CAAA;IAC5C,uEAA4C,CAAA;AAChD,CAAC,EAHiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAG/B;AA8SD,EAAE;AACF,cAAc;AACd,EAAE;AAEF,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iEAAO,CAAA;IACP,6DAAK,CAAA;IACL,iEAAO,CAAA;AACX,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"} \ No newline at end of file diff --git a/lib/compiler/utils.js.map b/lib/compiler/utils.js.map deleted file mode 100644 index c991499..0000000 --- a/lib/compiler/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/compiler/utils.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAE9B;;;GAGG;AACH,iBAAwB,CAAU;IAC9B,OAAe,CAAC,CAAC,IAAI,sBAAkC,IAAY,CAAC,CAAC,IAAI,uBAAiC,CAAC;AAC/G,CAAC;AAFD,0BAEC;AAED,wBAA+B,KAAoB;IAC/C,QAAQ,KAAK,EAAE;QACX,2BAAgC;QAChC,4BAAiC;QACjC;YACI,OAAO,IAAI,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AARD,wCAQC;AAED,2BAAkC,KAAoB;IAClD,OAAe,KAAK,6BAAwC,IAAY,KAAK,6BAAuC,CAAC;AACzH,CAAC;AAFD,8CAEC;AAED,2BAAkC,KAAoB;IAClD,IAAI,6BAAgD,KAAK,IAAI,6BAA+C,KAAK,EAAE;QAC/G,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AALD,8CAKC;AAED,gCAAuC,KAAoB;IACvD,QAAQ,KAAK,EAAE;QACX,+BAAmC;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C;gBACtD,SAAS,CAAC,MAAM,EAAmB,IAAK,CAAC,UAAU,CAAC,CAAC;QAC7D;YACI,OAAO,SAAS,CAAC,MAAM,EAAsB,IAAK,CAAC,UAAU,CAAC;gBAC1D,SAAS,CAAC,MAAM,EAAsB,IAAK,CAAC,SAAS,CAAC,CAAC;QAC/D;YACI,OAAO,SAAS,CAAC,MAAM,EAAoB,IAAK,CAAC,WAAW,CAAC;gBACzD,SAAS,CAAC,MAAM,EAAoB,IAAK,CAAC,SAAS,CAAC;gBACpD,SAAS,CAAC,MAAM,EAAoB,IAAK,CAAC,WAAW,CAAC;gBACtD,SAAS,CAAC,MAAM,EAAoB,IAAK,CAAC,SAAS,CAAC,CAAC;QAC7D,iCAAqC;QACrC;YACI,MAAM;QACV;YACI,OAAO,SAAS,CAAC,MAAM,EAAuB,IAAK,CAAC,UAAU,CAAC,CAAC;QACpE;YACI,OAAO,SAAS,CAAC,MAAM,EAAwB,IAAK,CAAC,IAAI,CAAC,CAAC;KAClE;AACL,CAAC;AAvFD,oCAuFC;AAED,iCAAwC,IAAa,EAAE,QAA+B,EAAE,GAAW;IAC/F,OAAsB;QAClB,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;QAC/B,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG;QAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,GAAG,EAAE,IAAI,CAAC,IAAI;QACd,WAAW,EAAE,GAAG;KACnB,CAAC;AACN,CAAC;AAVD,0DAUC"} \ No newline at end of file diff --git a/lib/sc2mod/archive.js.map b/lib/sc2mod/archive.js.map deleted file mode 100644 index a11585d..0000000 --- a/lib/sc2mod/archive.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"archive.js","sourceRoot":"","sources":["../../src/sc2mod/archive.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yBAAwB;AAC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,CAAC,WAAW,EAAE,CAAC,CAAC;qBAC/F;iBACJ;aACJ;YACD,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA;CACJ;AAhGD,gCAgGC;AAED;IAQI,YAAY,WAAwB,EAAE,eAA6B,EAAE;QANrE,gBAAW,GAAiB,EAAE,CAAC;QAC/B,iBAAY,GAAiB,EAAE,CAAC;QAChC,kBAAa,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC7D,iBAAY,GAA0B,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACtE,qBAAgB,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAG5D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9D,IAAI,WAAW,EAAE;YACb,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACtC;IACL,CAAC;IAEY,cAAc;;YACvB,MAAM,CAAC,GAAuB,EAAE,CAAC;YACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;YAClC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;YACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;KAAA;CACJ;AAxBD,oCAwBC"} \ No newline at end of file diff --git a/lib/sc2mod/datacatalog.js.map b/lib/sc2mod/datacatalog.js.map deleted file mode 100644 index 5d06f16..0000000 --- a/lib/sc2mod/datacatalog.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"datacatal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,CAAC;oBACd,KAAK,SAAS;wBACJ,KAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;wBAC9C,MAAM;iBACb;aACJ;YAED,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,EAAE;gBAAE,SAAS;YAExB,IAAI,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,MAAM;gBAC1D,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,GAAG,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;gBACjF,IAAI,aAAa,CAAC,SAAS,KAAK,CAAC,CAAC,EAAE;oBAChC,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC;oBAC5B,MAAM;iBACT;aACJ;YAED,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK;QACD,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IAED,KAAK;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAwB,CAAC;IACtD,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AApDD,sCAoDC"} \ No newline at end of file diff --git a/lib/sc2mod/localization.js.map b/lib/sc2mod/localization.js.map deleted file mode 100644 index f60467a..0000000 --- a/lib/sc2mod/localization.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"localization.js","sourceRoot":"","sources":["../../src/sc2mod/localization.ts"],"names":[],"mappings":";;AAAA,yBAAyB;AAGzB,oDAAoD;AACpD,MAAM,MAAM,GAAG,sBAAsB,CAAC;AAEtC,sBAA8B,SAAQ,GAAk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I,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACJ;AAPD,oDAOC"} \ No newline at end of file diff --git a/lib/sc2mod/trigger.js.map b/lib/sc2mod/trigger.js.map deleted file mode 100644 index 535bb39..0000000 --- a/lib/sc2mod/trigger.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../src/sc2mod/trigger.ts"],"names":[],"mappings":";;;;;;;;;;AACA,8BAA8B;AAE9B,IAAkB,WAiBjB;AAjBD,WAAkB,WAAW;IACzB,iDAA2B,CAAA;IAC3B,yDAA2B,CAAA;IAC3B,qDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAC3B,sDAA2B,CAAA;IAC3B,wEAA2B,CAAA;IAC3B,+DAA2B,CAAA;IAC3B,+DAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,wDAA4B,CAAA;IAC5B,gEAA4B,CAAA;IAC5B,4DAA4B,CAAA;IAC5B,oDAA4B,CAAA;IAC5B,qEAA4B,CAAA;IAC5B,6DAA4B,CAAA;IAC5B,yDAA4B,CAAA;AAChC,CAAC,EAjBiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAiB5B;AAED;IAMI,YAAmB,SAAuB;QACtC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IAEM,IAAI;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,CAAC,EAAE,CAAC;IAC1C,CAAC;IAEM,UAAU;QACb,IAAI,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;QACvB,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,IAAI,GAAG,IAAI,CAAC,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC;SACpC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,OAAO;QACV,IAAI,IAAI,CAAC,OAAO,EAAE;YACd,MAAM,GAAG,GAAG,IAA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D;AACrD,8BAA8B;AAC9B,IAAI"} \ No newline at end of file diff --git a/lib/service/completions.js.map b/lib/service/completions.js.map deleted file mode 100644 index c6e1fc2..0000000 --- a/lib/service/completions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../src/service/completions.ts"],"names":[],"mappings":";;AAEA,iDAAkD;AAClD,yCAA8C;AAC9C,iDAAoD;AACpD,6CAA8E;AAC9E,mCAA+H;AAC/H,iDAA8C;AAC9C,6CAA6C;AAC7C,qCAAoD;AAGpD,qBAAqB,UAAyB,EAAE,GAAW;IACvD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,qCAA6B,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IACpG,OAAO,OAAO,IAAI,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;AACxC,CAAC;AAED,IAAkB,wBAKjB;AALD,WAAkB,wBAAwB;IACtC,uEAAI,CAAA;IACJ,qFAAW,CAAA;IACX,yFAAa,CAAA;IACb,+FAAgB,CAAA;AACpB,CAAC,EALiB,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAKzC;AAAA,CAAC;AAID,CAAC;AAEF,IAAW,uBAGV;AAHD,WAAW,uBAAuB;IAC9B,+EAAkB,CAAA;IAClB,iGAA2B,CAAA;AAC/B,CAAC,EAHU,uBAAuB,KAAvB,uBAAuB,QAGjC;AAAA,CAAC;AAOD,CAAC;AAEF,yBAAiC,SAAQ,2BAAgB;IAIrD;QACI,KAAK,EAAE,CAAC;QAJJ,YAAO,GAAY,IAAI,iBAAO,EAAE,CAAC;QAKrC,IAAI,CAAC,MAAM,GAAqB;YAC5B,cAAc,cAA+B;SAChD,CAAC;IACN,CAAC;IAEM,uBAAuB,CAAC,IAA4B;QACvD,IAAI,IAAI,GAAa,EAAE,CAAC;QACxB,IAAI,WAA6B,CAAC;QAElC,IAAI,IAAI,CAAC,KAAK,CAAC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C,IAAI,EAAE;gBACf;oBACI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBACF,IAAK,CAAC,IAAI,GAAG,IAAI,CAAC;gBAC3C,eAAe;gBACnB,mCAAoC;gBACpC,oCAAqC;gBACrC,mCAAoC;gBACpC;oBACI,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBACjD,MAAM;aACb;SACJ;QAED,IAAI,UAAU,CAAC,aAAa,EAAE;YAC1B,UAAU,CAAC,aAAa,GAAsB;gBAC1C,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ;gBAC7B,KAAK,EAAE,UAAU,CAAC,aAAa;aAClC,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAjcD,kDAicC"} \ No newline at end of file diff --git a/lib/service/definitions.js.map b/lib/service/definitions.js.map deleted file mode 100644 index 7407d45..0000000 --- a/lib/service/definitions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/service/definitions.ts"],"names":[],"mappings":";;AACA,iDAAkD;AAClD,yCAA8C;AAC9C,6CAA8F;AAC9F,mCAA4E;AAG5E,wBAAgC,SAAQ,2BAAgB;IAC7C,eAAe,CAAC,GAAW,EAAE,QAAgB;QAChD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,MAAM,YAAY,GAAG,0BAAkB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAE9D,IAAI,CAAC,YAAY,IAAc,YAAa,CAAC,IAAI,yBAA6B,EAAE;YAC5E,OAAO,EAAE,CAAC;SACb;QAED,MAAM,WAAW,GAAmB,EAAE,CAAC;QAEvC,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,EAAE,CAAC;SACb;QAED,KAAK,IAAI,IAAI,IAAI,MAAM,CAAC,YAAY,EAAE;YAClC,IAAI,8BAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;gBACnC,IAAI,GAAyB,IAAK,CAAC,IAAI,CAAC;aAC3C;YACD,MAAM,UAAU,GAAG,2BAAmB,CAAC,IAAI,CAAC,CAAC;YAC7C,WAAW,CAAC,IAAI,CAAe;gBAC3B,GAAG,EAAE,2BAAmB,CAAC,IAAI,CAAC,CAAC,QAAQ;gBACvC,KAAK,EAAE;oBACH,KAAK,EAAE,qCAA6B,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC;oBAC1D,GAAG,EAAE,qCAA6B,CAAC,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC;iBAC3D;aACJ,CAAC,CAAC;SACN;QAED,OAAO,WAAW,CAAC;IACvB,CAAC;CACJ;AAnCD,gDAmCC"} \ No newline at end of file diff --git a/lib/service/diagnostics.js.map b/lib/service/diagnostics.js.map deleted file mode 100644 index 8b067cb..0000000 --- a/lib/service/diagnostics.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../src/service/diagnostics.ts"],"names":[],"mappings":";;AAAA,6CAA6C;AAE7C,yCAA8C;AAE9C,iDAAkD;AAClD,+CAAsD;AACtD,mCAAwD;AAIxD,yBAAiC,SAAQ,2BAAgB;IAG7C,oBAAoB,CAAC,UAAyB,EAAE,eAAgC;QACpF,IAAI,cAAc,GAAqB,EAAE,CAAC;QAE1C,KAAK,IAAI,EAAE,IAAI,eAAe,EAAE;YAC5B,cAAc,CAAC,IAAI,CAAC;gBAChB,QAAQ,EAAE,GAAG,CAAC,kBAAkB,CAAC,KAAK;gBACtC,KAAK,EAAE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C9D,CAAC;CACJ;AA5CD,kDA4CC"} \ No newline at end of file diff --git a/lib/service/hover.js.map b/lib/service/hover.js.map deleted file mode 100644 index 5dffa8a..0000000 --- a/lib/service/hover.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hover.js","sourceRoot":"","sources":["../../src/service/hover.ts"],"names":[],"mappings":";;AACA,iDAAkD;AAClD,yCAA8C;AAE9C,mCAA6G;AAC7G,iDAA8C;AAC9C,qCAAoD;AAGpD,mBAA2B,SAAQ,2BAAgB;IAAnD;;QACY,YAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;IA+DpC,CAAC;IA7DU,UAAU,CAAC,MAAsC;QACpD,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QACrE,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,MAAM,QAAQ,GAAG,qCAA6B,CAAC,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QAC5G,MAAM,YAAY,GAAG,4BAAoB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAEhE,IAAI,CAAC,YAAY,IAAc,YAAa,CAAC,IAAI,yBAA6B,EAAE;YAC5E,OAAO,IAAI,CAAC;SACf;QAED,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAEzD,IAAI,CAAC,MAAM,EAAE;YACT,OAAO,IAAI,CAAC;SACf;QAED,MAAM,OAAO,GAAa,EAAE,CAAC;QAE7B,IAAI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;QAClC,IAAI,IAAI,CAAC,IAAI,kCAAsC,EAAE;YACjD,IAAI,GAAG,MAA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-run.js.map b/lib/service/lsp-run.js.map deleted file mode 100644 index f29cb16..0000000 --- a/lib/service/lsp-run.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lsp-run.js","sourceRoot":"","sources":["../../src/service/lsp-run.ts"],"names":[],"mappings":";;AAAA,qCAAkC;AAElC,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;AAC5B,MAAM,CAAC,gBAAgB,EAAE,CAAC,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/service/navigation.js.map b/lib/service/navigation.js.map deleted file mode 100644 index 0a489df..0000000 --- a/lib/service/navigation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../src/service/navigation.ts"],"names":[],"mappings":";;AACA,6CAAiD;AACjD,mCAAsC;AACtC,yCAA8C;AAE9C,6BAA6B,UAAsB;IAC/C,IAAI,YAAY,GAAuB,EAAE,CAAC;IAE1C,6BAA6B,IAAsB;QAC/C,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,mBAAmB,IAAU;QACzB,IACI,IAAI,CAAC,IAAI,kCAAmC;YAC5C,IAAI,CAAC,IAAI,kCAAmC;YAC5C,IAAI,CAAC,IAAI,gCAAiC,EAC5C;YACE,mBAAmB,CAAmB,IAAI,CAAC,CAAC;SAC/C;QAED,IAAI,IAAI,CAAC,IAAI,yBAA0B,EAAE;YACrC,oBAAY,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;SACjD;IACL,CAAC;IAED,SAAS,CAAC,UAAU,CAAC,CAAC;IAEtB,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,wBAAgC,SAAQ,2BAAgB;IAC7C,kBAAkB,CAAC,GAAW;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO;QACxB,OAAO,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAEM,mBAAmB,CAAC,KAAc;QACrC,IAAI,YAAY,GAAuB,EAAE,CAAC;QAE1C,KAAK,EAAE,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE;YACzD,KAAK,MAAM,IAAI,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE;gBAC9C,IAAI,CAAC,KAAK,IAAI,mBAAW,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC9C,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,YAAY,CAAC,MAAM,IAAI,IAAI,EAAE;wBAC7B,MAAM,KAAK,CAAC;qBACf;iBACJ;aACJ;SACJ;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/lib/service/provider.js.map b/lib/service/provider.js.map deleted file mode 100644 index 679fb98..0000000 --- a/lib/service/provider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/service/provider.ts"],"names":[],"mappings":";;AA8BA;IAIW,IAAI,CAAC,KAAY,EAAE,MAAqB;QAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;IAC1B,CAAC;CACJ;AARD,4CAQC;AAED,wBAA2D,GAAgB,EAAE,KAAY,EAAE,MAAsB;IAC7G,MAAM,QAAQ,GAAG,IAAI,GAAG,EAAE,CAAC;IAC3B,IAAI,CAAC,MAAM,EAAE;QACT,MAAM,GAAkB;YACpB,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE,GAAE,CAAC;YAClB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,GAAE,CAAC;YACjB,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,GAAE,CAAC;YACjB,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE,GAAE,CAAC;SACnB,CAAC;KACL;IACD,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAiB;QAChC,KAAK,EAAE,CAAC,OAAO,EAAE,EAAE;YACf,MAAM,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE;YACd,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QACjD,CAAC;QACD,IAAI,EAAE,CAAC,OAAO,EAAE,EAAE;YACd,MAAM,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QACjD,CAAC;QACD,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE;YACb,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QAChD,CAAC;KACJ,CAAC,CAAA;IACF,OAAO,QAAQ,CAAC;AACpB,CAAC;AAzBD,wCAyBC"} \ No newline at end of file diff --git a/lib/service/references.js.map b/lib/service/references.js.map deleted file mode 100644 index 391d411..0000000 --- a/lib/service/references.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"references.js","sourceRoot":"","sources":["../../src/service/references.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAG9C,6CAAiD;AACjD,mCAA6G;AAC7G,iDAAkD;AAClD,2CAA6B;AAI5B,CAAC;AAEF,wBAAgC,SAAQ,2BAAgB;IAOpD;QACI,KAAK,EAAE,CAAC;QAPJ,cAAS,GAAmB,EAAE,CAAC;QAQnC,IAAI,CAAC,MAAM,GAAqB;YAC5B,oBAAoB,EAAE,KAAK;SAC9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AO,CAAC,mBAAmB,CAAC,YAAY,CAAC,CAAC;QAEnE,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACpB,OAAO,IAAI,CAAC;SACf;QAED,KAAK,MAAM,UAAU,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE;YACpD,IACI,CAAC,IAAI,CAAC,MAAM,CAAC,oBAAoB,IAAI,oBAAoB,KAAK,IAAI,CAAC;gBACnE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,oBAAG,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;gBAChG,CAAC,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,EACpD;gBACE,SAAS;aACZ;YACD,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,UAAU,CAAC,CAAC;SAClD;QAED,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;CACJ;AA7DD,gDA6DC"} \ No newline at end of file diff --git a/lib/service/rename.d.ts b/lib/service/rename.d.ts deleted file mode 100644 index eb7509e..0000000 --- a/lib/service/rename.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AbstractProvider } from './provider'; -import * as lsp from 'vscode-languageserver'; -import { ReferencesProvider } from './references'; -export declare class RenameProvider extends AbstractProvider { - referencesProvider: ReferencesProvider; - onRenameRequest(params: lsp.RenameParams): lsp.WorkspaceEdit | lsp.ResponseError; -} diff --git a/lib/service/rename.js b/lib/service/rename.js deleted file mode 100644 index 742ebe8..0000000 --- a/lib/service/rename.js +++ /dev/null @@ -1,58 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const provider_1 = require("./provider"); -const lsp = require("vscode-languageserver"); -const checker_1 = require("../compiler/checker"); -const utils_1 = require("./utils"); -const utils_2 = require("../compiler/utils"); -const vscode_uri_1 = require("vscode-uri"); -class RenameProvider extends provider_1.AbstractProvider { - onRenameRequest(params) { - const workspaceEdit = { - changes: {}, - }; - const sourceFile = this.store.documents.get(params.textDocument.uri); - if (!sourceFile) - return; - const position = utils_1.getPositionOfLineAndCharacter(sourceFile, params.position.line, params.position.character); - const currentToken = utils_1.getAdjacentIdentfier(position, sourceFile); - if (!currentToken) { - return null; - } - const checker = new checker_1.TypeChecker(this.store); - const symbol = checker.getSymbolAtLocation(currentToken); - if (!symbol) { - return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Not identifier'); - } - for (const decl of symbol.declarations) { - const declSourceFile = utils_2.getSourceFileOfNode(decl); - if ((!this.store.rootPath || !vscode_uri_1.default.parse(declSourceFile.fileName).fsPath.startsWith(this.store.rootPath)) && - !this.store.openDocuments.has(declSourceFile.fileName)) { - return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Declaration not in workspace'); - } - } - if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(params.newName)) { - return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Invalid name'); - } - if (this.store.resolveGlobalSymbol(params.newName)) { - return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Name already in use'); - } - const locations = this.referencesProvider.onReferences({ - textDocument: params.textDocument, - position: params.position, - context: { includeDeclaration: true }, - }, true); - for (const loc of locations) { - if (typeof workspaceEdit.changes[loc.uri] === "undefined") { - workspaceEdit.changes[loc.uri] = []; - } - workspaceEdit.changes[loc.uri].push({ - range: loc.range, - newText: params.newName, - }); - } - return workspaceEdit; - } -} -exports.RenameProvider = RenameProvider; -//# sourceMappingURL=rename.js.map \ No newline at end of file diff --git a/lib/service/rename.js.map b/lib/service/rename.js.map deleted file mode 100644 index f3cd127..0000000 --- a/lib/service/rename.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rename.js","sourceRoot":"","sources":["../../src/service/rename.ts"],"names":[],"mappings":";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map deleted file mode 100644 index 4f66398..0000000 --- a/lib/service/s2meta.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"s2meta.js","sourceRoot":"","sources":["../../src/service/s2meta.ts"],"names":[],"mappings":";;;;;;;;;;AACA,6CAAwD;AAExD,0CAA0C;AAI1C,mCAAwD;AAExD,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACjD,MAAM,mBAAmB,GAAG,YAAY,CAAC;AACzC,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,OAAO,GAAG,IAAI,CAAC;AAErB;IA+FI,YAAY,SAAuB;QA7FzB,cAAS,GAA8B,IAAI,GAAG,EAAE,CAAC;QACjD,yBAAoB,GAA6B,IAAI,GAAG,EAAE,CAAC;QA6FjE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IA5FM,oBAAoB,CAAC,EAAgB;QACxC,IAAI,KAAK,GAAa,EAAE,CAAC;QACzB,IAAI,QAAQ,GAAW,EAAE,CAAC;QAE1B,IAAI,EAAE,CAAC,IAAI,EAAE;YACT,QAAQ,GAAG,EAAE,CAAC,IAAI,CAAC;SACtB;aACI;YACD,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YACnF,IAAI,aAAa,EAAE;gBACf,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;aAChE;SACJ;QAED,IAAI,EAAE,YAAY,IAAI,CAAC,WAAW,IAAI,CAAC,EAAE,CAAC,KAAK,iBAA0B,IAAI,EAAE,CAAC,KAAK,6BAAkC,CAAC,EAAE;YACtH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACxB;aACI,IACkB,EAAG,CAAC,KAAK,IAAI,CACT,EAAG,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC;YAC1B,EAAG,CAAC,KA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,4DA2BC"} \ No newline at end of file diff --git a/lib/service/server.js.map b/lib/service/server.js.map deleted file mode 100644 index a43e121..0000000 --- a/lib/service/server.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/service/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA6C;AAE7C,6BAA6B;AAC7B,6BAA6B;AAC7B,yBAAyB;AACzB,6CAAiD;AACjD,mCAAyK;AACzK,mCAAuF;AACvF,yCAA6E;AAC7E,+CAAoD;AACpD,6CAAkD;AAClD,+CAAgG;AAChG,6CAAkD;AAClD,+CAAmD;AACnD,mCAAwC;AACxC,6CAAoE;AACpE,qCAA0C;AAC1C,+CAAwJ;AACxJ,mCAAkD;AAClD,2CAA6B;AAE7B,sBAAsB,IAAgB;IAClC,OAAO;QACH,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE;QAChD,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,IAAI,EAAE;KACjD,CAAC;AACN,CAAC;AAED,2BAA2B,IAAgB;IACvC,QAAQ,IAAI,CAAC,IAAI,EAAE;QACf;YACI,MAAM,QAAQ,GAA8B,IAAI,CAAC;YACjD,MAAM,UAAU,GAAG,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,KAAqB,EAAW,EAAE;gBAC1E,OAAO,KAAK,CAAC,IAAI,0BAAkC,CAAC;YACxD,CAAC,CAAC,CAAC;YACH,OAAO,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC;QAC1E;YACI,OAAO,GAAG,CAAC,UAAU,CAAC,QAAQ,CAAC;QACnC;YACI,OAAO,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC;QAChC;YACI,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C,GAAG,CAAC;IAChC,CAAC,CAAC;kDAGD;AAUD;IADC,WAAW,EAAE;0CAkBb;AAGD;IADC,WAAW,EAAE;iDAGb;AAGD;IADC,WAAW,EAAE;8CAIb;AAGD;IADC,WAAW,EAAE;+CAIb;AAGD;IADC,WAAW,EAAE;6CAQb;AAGD;IADC,WAAW,EAAE;0CASb;AAGD;IADC,WAAW,EAAE;qCAIb;AAGD;IADC,WAAW,EAAE;0CAIb;AAGD;IADC,WAAW,EAAE;6CAIb;AA5bL,wBA6bC;AAED;IACI,OAAO,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC7C,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/lib/service/signatures.js.map b/lib/service/signatures.js.map deleted file mode 100644 index 5fd0059..0000000 --- a/lib/service/signatures.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"signatures.js","sourceRoot":"","sources":["../../src/service/signatures.ts"],"names":[],"mappings":";;AACA,6CAA6C;AAE7C,6CAAsE;AACtE,iDAA8C;AAC9C,iDAAkD;AAClD,yCAA8C;AAC9C,mCAA6C;AAC7C,qCAAoD;AAEpD,wBAAgC,SAAQ,2BAAgB;IAAxD;;QACY,YAAO,GAAY,IAAI,iBAAO,EAAE,CAAC;IAsH7C,CAAC;IApHW,uBAAuB,CAAC,QAAwB,EAAE,QAAgB;QACtE,IAAI,WAAW,GAAkB,IAAI,CAAC;QACtC,IAAI,OAAgB,CAAC;QAErB,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,QAAoB,EAAE,KAAa,EAAE,IAAI,EAAE,EAAE;YAClE,IAAI,QAAQ,CAAC,GAAG,IAAI,QAAQ,EAAE;gBAC1B,WAAW,GAAG,KAAK,CAAC;gBACpB,OAAO,GAAG,QAAQ,CAAC;gBAEnB,4CAA4C;gBAC5C,oDAAoD;gBACpD,IAAI,QAAQ,CAAC,GAAG,IAAI,QAAQ,EAAE;oBAC1B,OAAO,IAAI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AG,QAAQ,EAAE;gBACpD,OAAO,KAAK,CAAC;aAChB;YACD,2DAA2D;YAC3D,IAAI,OAAO,CAAC,GAAG,IAAI,QAAQ,EAAE;gBACzB,OAAO,KAAK,CAAC;aAChB;YACD,OAAO,IAAI,CAAC;QAChB,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,QAAQ,EAAE;YACX,OAAO,IAAI,CAAC;SACf;QAED,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAE9D,IAAI,IAAI,CAAC,KAAK,uBAAwB,EAAE;YACpC,MAAM,aAAa,GAAG,IAAI,CAAC,sBAAsB,CAAmB,IAAK,CAAC,MAAM,CAAC,CAAC;YAElF,aAAa,CAAC,eAAe,GAAG,CAAC,CAAC;YAClC,aAAa,CAAC,eAAe,GAAG,IAAI,CAAC,uBAAuB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YACjF,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAChD;QAED,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ;AAvHD,gDAuHC"} \ No newline at end of file diff --git a/lib/service/store.js.map b/lib/service/store.js.map deleted file mode 100644 index fdcf8b7..0000000 --- a/lib/service/store.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/service/store.ts"],"names":[],"mappings":";;;;;;;;;;AAGA,+CAA4C;AAC5C,qCAA+C;AAC/C,+CAAsE;AACtE,+CAA4H;AAE5H,6CAA6C;AAC7C,6BAA6B;AAC7B,yBAAyB;AACzB,6BAA6B;AAC7B,2CAA6B;AAC7B,iDAAkD;AAClD,2CAA6B;AAE7B,4BAAmC,GAAW,EAAE,IAAY;IACxD,OAAyB;QACrB,GAAG,EAAE,GAAG;QACR,UAAU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A9ED,sBA8EC"} \ No newline at end of file diff --git a/lib/service/utils.js.map b/lib/service/utils.js.map deleted file mode 100644 index 75736fb..0000000 --- a/lib/service/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/service/utils.ts"],"names":[],"mappings":";;AACA,6CAA+E;AAG/E,yBAAgC,IAAa;IACzC,IAAI,QAAQ,GAAc,EAAE,CAAC;IAE7B,oBAAY,CAAC,IAAI,EAAE,CAAC,KAAc,EAAE,EAAE;QAClC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC,CAAC,CAAA;IAEF,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAC9C,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAU,EAAE,CAAU,EAAU,EAAE;QACxD,IAAI,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,EAAE;YACjB,OAAO,CAAC,CAAC;SACZ;QACD,OAAO,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,OAAO,QAAQ,CAAC;AACpB,CAAC;AAhBD,0CAgBC;AAED,uBAA8B,IAAa;IACvC,OAAO,IAAI,CAAC,YAAY,CAAC;AAC7B,CAAC;AAFD,sCAEC;AAED,uBAA8B,IAAa;IACvC,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,GAAG,CAAC,CAAC;AACnC,CAAC;AAFD,sCAEC;AAED,4BAAmC,QAAgB,EAAE,UAAyB,EAAE,SAAmB;IAC/F,OAAO,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC,CAAC;IAErC,4BAA4B,CAAU;QAClC,IAAI,eAAO,CAAC,CAAC,CAAC,EAAE;YACZ,OAAO,CAAC,CAAC;SACZ;QA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C,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,EAAE,EAAE;QACzC,IAAI,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC/B,OAAO,CAAC,GAAG,IAAI,EAAE;YACb,IAAI,GAAG,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,CAAC;YAEnC,iBAAiB;YACjB,IAAI,GAAG,KAAK,GAAG,EAAE;gBACb,SAAS,KAAK,CAAC;aAClB;YAED,uBAAuB;YACvB,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,EAAE;gBACxB,GAAG,IAAI,EAAE,CAAC;aACb;iBACI,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE;gBAC9B,GAAG,IAAI,EAAE,CAAC;aACb;iBACI;gBACD,MAAM;aACT;YACD,IAAI,GAAG,KAAK,GAAG,EAAE;gBACb,SAAS,KAAK,CAAC;aAClB;SACJ;QACD,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AApCD,kCAoCC"} \ No newline at end of file diff --git a/lib/compiler/binder.d.ts b/lib/src/compiler/binder.d.ts similarity index 68% rename from lib/compiler/binder.d.ts rename to lib/src/compiler/binder.d.ts index ade7a38..e1b7699 100644 --- a/lib/compiler/binder.d.ts +++ b/lib/src/compiler/binder.d.ts @@ -1,7 +1,7 @@ import * as gt from './types'; import { SourceFile, Node, Symbol } from './types'; -import { Store } from '../service/store'; +import { IStoreSymbols } from '../service/store'; export declare function getDeclarationName(node: Node): string; -export declare function declareSymbol(node: gt.Declaration, store: Store, parentSymbol?: Symbol): Symbol; -export declare function bindSourceFile(sourceFile: SourceFile, store: Store): void; -export declare function unbindSourceFile(sourceFile: SourceFile, store: Store): void; +export declare function declareSymbol(node: gt.Declaration, store: IStoreSymbols, parentSymbol?: Symbol): Symbol; +export declare function bindSourceFile(sourceFile: SourceFile, store: IStoreSymbols): void; +export declare function unbindSourceFile(sourceFile: SourceFile, store: IStoreSymbols): void; diff --git a/lib/compiler/binder.js b/lib/src/compiler/binder.js similarity index 100% rename from lib/compiler/binder.js rename to lib/src/compiler/binder.js diff --git a/lib/src/compiler/binder.js.map b/lib/src/compiler/binder.js.map new file mode 100644 index 0000000..e76a009 --- /dev/null +++ b/lib/src/compiler/binder.js.map @@ -0,0 +1 @@ +{"version":3,"file":"binder.js","sourceRoot":"","sources":["../../../src/compiler/binder.ts"],"names":[],"mappings":";;AAGA,mCAAwH;AAExH,0DAA0D;AAE1D,4BAAmC,IAAU;IACzC,QAAQ,IAAI,CAAC,IAAI,EAAE;QACf;YACA;gBACI,OAAuB,IAAK,CAAC,QAAQ,CAAC;gBACtC,MAAM;aACT;QAED,mCAAoC;QACpC,mCAAoC;QACpC,iCAAkC;QAClC,oCAAqC;QACrC,mCAAoC;QACpC;YACA;gBACI,OAA6B,IAAK,CAAC,IAAI,CAAC,IAAI,CAAC;gBAC7C,MAAM;aACT;QAED;YACA;gBACI,OAAO,UAAU,GAAiC,IAAK,CAAC,IAAI,CAAC,IAAI,CAAC;gBAClE,MAAM;aACT;QAED;YACA;gBACI,MAAM,IAAI,GAAsB,IAAI,CAAC;gBACrC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,yBAA6B,EAAE;oBACnD,OAAuB,IAAI,CAAC,UAAW,CAAC,IAAI,CAAC;iBAChD;qBACI;oBACD,sEAAsE;oBACtE,OAAO,MAAM,CAAC;iBACjB;gBACD,MAAM;aACT;KACJ;AACL,CAAC;AAtCD,gDAsCC;AAED,6EAA6E;AAC7E,+DAA+D;AAC/D,qBAAqB;AACrB,0CAA0C;AAC1C,sDAAsD;AACtD,YAAY;AACZ,QAAQ;AACR,qBAAqB;AACrB,IAAI;AAEJ,uBAA8B,IAAoB,EAAE,KAAoB,EAAE,YAAqB;IAC3F,IAAI,iBAAyB,CAAC;IAC9B,IAAI,UAAkB,CAAC;IAC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from lib/compiler/checker.d.ts rename to lib/src/compiler/checker.d.ts index 7b4f52d..56bc8f2 100644 --- a/lib/compiler/checker.d.ts +++ b/lib/src/compiler/checker.d.ts @@ -106,6 +106,7 @@ export declare class TypeChecker { private nodeLinks; private diagnostics; private currentSymbolContainer; + private currentDocuments; constructor(store: Store); private report(location, msg, category?); private getNodeLinks(node); @@ -128,7 +129,13 @@ export declare class TypeChecker { private getRegularTypeOfExpression(expr); private getTypeOfExpression(node, cache?); checkSourceFile(sourceFile: gt.SourceFile, bindSymbols?: boolean): gt.Diagnostic[]; + protected checkSourceFileRecursivelyWorker(sourceFile: gt.SourceFile): void; + checkSourceFileRecursively(sourceFile: gt.SourceFile): { + success: boolean; + diagnostics: Map; + }; private checkSourceElement(node); + private checkIncludeStatement(node); private checkFunction(node); private checkParameterDeclaration(node); private checkVariableDeclaration(node); @@ -149,11 +156,12 @@ export declare class TypeChecker { private checkParenthesizedExpression(node, checkMode?); private checkPrefixUnaryExpression(node, checkMode?); private checkPostfixUnaryExpression(node, checkMode?); - private checkIdentifier(node); + private checkIdentifier(node, checkSymbol?); private checkCallExpression(node); private checkIndexedAccess(node); private checkPropertyAccessExpression(node); private resolveName(location, name); + private resolveGlobalSymbol(name); private resolveEntityName(entityName, meaning, ignoreErrors?, location?); private getSymbolOfEntityNameOrPropertyAccessExpression(entityName); getSymbolAtLocation(node: gt.Node): gt.Symbol | undefined; diff --git a/lib/compiler/checker.js b/lib/src/compiler/checker.js similarity index 91% rename from lib/compiler/checker.js rename to lib/src/compiler/checker.js index 9040dfc..3630572 100644 --- a/lib/compiler/checker.js +++ b/lib/src/compiler/checker.js @@ -1,5 +1,7 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const vscode_uri_1 = require("vscode-uri"); const gt = require("./types"); const utils_1 = require("../compiler/utils"); const utils_2 = require("./utils"); @@ -537,12 +539,17 @@ function generateComplexTypes() { class TypeChecker { constructor(store) { this.nodeLinks = []; - this.diagnostics = []; + this.diagnostics = new Map(); this.currentSymbolContainer = null; + this.currentDocuments = new Map(); this.store = store; + this.currentDocuments = this.store.documents; } report(location, msg, category = gt.DiagnosticCategory.Error) { - this.diagnostics.push(utils_2.createDiagnosticForNode(location, category, msg)); + const d = utils_2.createDiagnosticForNode(location, category, msg); + const c = this.diagnostics.get(d.file.fileName); + if (c) + c.push(d); } getNodeLinks(node) { const nodeId = getNodeId(node); @@ -704,20 +711,60 @@ class TypeChecker { return this.checkExpression(node); } checkSourceFile(sourceFile, bindSymbols = false) { - this.diagnostics = []; + this.diagnostics.clear(); + this.diagnostics.set(sourceFile.fileName, []); + this.currentDocuments = this.store.documents; if (bindSymbols) { - this.currentSymbolContainer = binder_1.declareSymbol(sourceFile, this.store, null); + this.currentSymbolContainer = binder_1.declareSymbol(sourceFile, { resolveGlobalSymbol: this.resolveGlobalSymbol.bind(this) }, null); } + sourceFile.statements.forEach(this.checkSourceElement.bind(this)); + return Array.from(this.diagnostics.values()).pop(); + } + checkSourceFileRecursivelyWorker(sourceFile) { + binder_1.unbindSourceFile(sourceFile, { resolveGlobalSymbol: this.resolveGlobalSymbol.bind(this) }); + this.currentSymbolContainer = binder_1.declareSymbol(sourceFile, { resolveGlobalSymbol: this.resolveGlobalSymbol.bind(this) }, null); + this.diagnostics.set(sourceFile.fileName, []); + this.currentDocuments.set(sourceFile.fileName, sourceFile); for (const statement of sourceFile.statements) { + if (statement.kind === 134 /* IncludeStatement */) { + const docUri = this.checkIncludeStatement(statement); + if (docUri && !this.currentDocuments.has(docUri)) { + const inclFile = this.store.documents.get(docUri); + if (inclFile) { + const currentSymbolContainer = this.currentSymbolContainer; + this.checkSourceFileRecursivelyWorker(inclFile); + this.currentSymbolContainer = currentSymbolContainer; + } + } + continue; + } this.checkSourceElement(statement); } - return this.diagnostics; + } + checkSourceFileRecursively(sourceFile) { + this.diagnostics.clear(); + this.currentDocuments = new Map(); + if (this.store.s2workspace) { + const coreMod = this.store.s2workspace.allArchives.find((archive) => archive.name === 'mods/core.sc2mod'); + if (coreMod) { + const fsp = path.join(coreMod.directory, 'base.sc2data', 'TriggerLibs', 'natives_missing.galaxy'); + const smNatives = this.store.documents.get(vscode_uri_1.default.file(fsp).toString()); + if (smNatives) { + this.checkSourceFileRecursivelyWorker(smNatives); + } + } + } + this.checkSourceFileRecursivelyWorker(sourceFile); + return { + success: Array.from(this.diagnostics.values()).findIndex((value, index) => value.length > 0) === -1, + diagnostics: this.diagnostics, + }; } checkSourceElement(node) { let prevSymbolContainer = null; if (this.currentSymbolContainer && utils_2.isDeclarationKind(node.kind)) { prevSymbolContainer = this.currentSymbolContainer; - this.currentSymbolContainer = binder_1.declareSymbol(node, this.store, prevSymbolContainer); + this.currentSymbolContainer = binder_1.declareSymbol(node, { resolveGlobalSymbol: this.resolveGlobalSymbol.bind(this) }, prevSymbolContainer); if (this.currentSymbolContainer.declarations.length > 1) { let previousDeclaration; if (node.kind === 140 /* FunctionDeclaration */) { @@ -752,6 +799,9 @@ class TypeChecker { } } switch (node.kind) { + case 134 /* IncludeStatement */: + this.checkIncludeStatement(node); + break; case 127 /* Block */: this.checkBlock(node); break; @@ -802,6 +852,23 @@ class TypeChecker { this.currentSymbolContainer = prevSymbolContainer; } } + checkIncludeStatement(node) { + const path = node.path.value.replace(/\.galaxy$/i, '').toLowerCase(); + for (const docUri of this.store.documents.keys()) { + const meta = this.store.getDocumentMeta(docUri); + if (!meta.relativeName) + continue; + if (meta.relativeName.toLowerCase() != path) + continue; + const sourceFile = utils_2.findAncestorByKind(node, 126 /* SourceFile */); + if (this.store.documents.get(docUri) === sourceFile) { + this.report(node.path, `Self-include`, gt.DiagnosticCategory.Warning); + return; + } + return docUri; + } + this.report(node.path, `Given filename couldn't be matched`); + } checkFunction(node) { this.checkSourceElement(node.type); const currentSignature = this.getSignatureOfFunction(node); @@ -834,7 +901,7 @@ class TypeChecker { } checkVariableDeclaration(node) { this.checkSourceElement(node.type); - this.checkIdentifier(node.name); + this.checkIdentifier(node.name, true); if (node.initializer) { const varType = this.getTypeFromTypeNode(node.type); const exprType = this.checkExpression(node.initializer); @@ -1031,15 +1098,15 @@ class TypeChecker { checkPostfixUnaryExpression(node, checkMode) { return this.checkExpression(node.operand); } - checkIdentifier(node) { + checkIdentifier(node, checkSymbol = false) { const symbol = this.getSymbolOfEntityNameOrPropertyAccessExpression(node); if (!symbol) { this.report(node, `Undeclared symbol: '${node.name}'`); return unknownType; } - if ((symbol.flags & 6 /* FunctionScopedVariable */)) { + if (checkSymbol && (symbol.flags & 6 /* FunctionScopedVariable */)) { const globalSym = this.resolveName(null, node.name); - if (globalSym) { + if (globalSym && (globalSym.flags & 32 /* Function */)) { this.report(node, `Name clash for '${node.name}'. Name already in use in global scope.`); } } @@ -1132,7 +1199,10 @@ class TypeChecker { return sourceFile.symbol.members.get(name); } } - for (const document of this.store.documents.values()) { + return this.resolveGlobalSymbol(name); + } + resolveGlobalSymbol(name) { + for (const document of this.currentDocuments.values()) { const symbol = document.symbol.members.get(name); if (symbol) { return symbol; diff --git a/lib/src/compiler/checker.js.map b/lib/src/compiler/checker.js.map new file mode 100644 index 0000000..de3b00c --- /dev/null +++ b/lib/src/compiler/checker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"checker.js","sourceRoot":"","sources":["../../../src/compiler/checker.ts"],"names":[],"mappings":";;AACA,6BAA6B;AAC7B,2CAA6B;AAC7B,8BAA8B;AAC9B,6CAAsD;AACtD,mCAA0O;AAE1O,uCAA0C;AAC1C,uCAAoC;AACpC,qCAA2D;AAC3D,4CAAiE;AAEjE,IAAI,YAAY,GAAG,CAAC,CAAC;AACrB,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,MAAM,OAAO,GAAG,IAAI,iBAAO,EAAE,CAAC;AAE9B,mBAA0B,IAAa;IACnC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;QACV,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC;QACrB,UAAU,EAAE,CAAC;KAChB;IACD,OAAO,IAAI,CAAC,EAAE,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AAC,IAAI,CAAC,CAAC;YACnE,IAAI,CAAC,MAAM,EAAE;gBACT,OAAO,SAAS,CAAC;aACpB;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEO,+CAA+C,CAAC,UAAuD;QAC3G,IAAI,mCAA2B,CAAC,UAAU,CAAC,EAAE;YACzC,UAAU,GAAgC,UAAU,CAAC,MAAM,CAAC;SAC/D;QAED,IAAI,UAAU,CAAC,IAAI,yBAA6B,EAAE;YAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;SAC1D;aACI,IAAI,UAAU,CAAC,IAAI,uCAA2C,EAAE;YACjE,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;YAC5C,IAAI,KAAK,CAAC,cAAc,EAAE;gBACtB,OAAO,KAAK,CAAC,cAAc,CAAC;aAC/B;YACD,IAAI,CAAC,6BAA6B,CAA8B,UAAU,CAAC,CAAC,MAAM,CAAC;YACnF,OAAO,KAAK,CAAC,cAAc,CAAC;SAC/B;IACL,CAAC;IAEM,mBAAmB,CAAC,IAAa;QACpC,QAAQ,IAAI,CAAC,IAAI,EAAE;YACf,0BAA8B;YAC9B;gBACI,OAAO,IAAI,CAAC,+CAA+C,CAA8C,IAAI,CAAC,CAAC;SACtH;IACL,CAAC;CACJ;AAvxBD,kCAuxBC"} \ No newline at end of file diff --git a/lib/compiler/diagnostics.d.ts b/lib/src/compiler/diagnostics.d.ts similarity index 100% rename from lib/compiler/diagnostics.d.ts rename to lib/src/compiler/diagnostics.d.ts diff --git a/lib/compiler/diagnostics.js b/lib/src/compiler/diagnostics.js similarity index 100% rename from lib/compiler/diagnostics.js rename to lib/src/compiler/diagnostics.js diff --git a/lib/src/compiler/diagnostics.js.map b/lib/src/compiler/diagnostics.js.map new file mode 100644 index 0000000..7867508 --- /dev/null +++ b/lib/src/compiler/diagnostics.js.map @@ -0,0 +1 @@ +{"version":3,"file":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oDAkBC"} \ No newline at end of file diff --git a/lib/compiler/parser.d.ts b/lib/src/compiler/parser.d.ts similarity index 100% rename from lib/compiler/parser.d.ts rename to lib/src/compiler/parser.d.ts diff --git a/lib/compiler/parser.js b/lib/src/compiler/parser.js similarity index 99% rename from lib/compiler/parser.js rename to lib/src/compiler/parser.js index f6151c0..181cec4 100644 --- a/lib/compiler/parser.js +++ b/lib/src/compiler/parser.js @@ -384,12 +384,12 @@ class Parser { if (!kind) { kind = this.token(); } - const node = this.createNode(kind); - this.parseExpected(kind, undefined, false); - node.value = this.scanner.getTokenValue(); - node.text = this.scanner.getTokenText(); - this.nextToken(); - return this.finishNode(node); + const node = this.createNode(kind, undefined, false); + node.end = this.scanner.getCurrentPos(); + node.value = this.scanner.getTokenValue() || ''; + node.text = this.scanner.getTokenText() || ''; + this.parseExpected(kind); + return node; } parseInclude() { const node = this.createNode(134 /* IncludeStatement */); diff --git a/lib/src/compiler/parser.js.map b/lib/src/compiler/parser.js.map new file mode 100644 index 0000000..bd64dc9 --- /dev/null +++ b/lib/src/compiler/parser.js.map @@ -0,0 +1 @@ +{"version":3,"file":"parser.js","sourceRoot":"","sources":["../../../src/compiler/parser.ts"],"names":[],"mappings":";;AAAA,iCAAiC;AAEjC,uCAAmD;AACnD,mCAAgM;AAChM,+CAAqD;AAErD,IAAW,cAOV;AAPD,WAAW,cAAc;IACrB,uEAAc,CAAA;IACd,yEAAe,CAAA;IACf,qEAAa,CAAA;IACb,+DAAU,CAAA;IACV,qEAAa,CAAA;IACb,iFAAmB,CAAA;AACvB,CAAC,EAPU,cAAc,KAAd,cAAc,QAOxB;AAED;IAwkCI;QArkCQ,mBAAc,GAAmB,CAAC,CAAC;QAskCvC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,CAAC,OAAgC,EAAE,GAAW,EAAE,MAAc,EAAE,EAAE;YACzF,IAAI,CAAC,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,C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UAAU,CAAC,CAAC;QACjC,IAAI,CAAC,UAAU,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC;QACpD,IAAI,CAAC,UAAU,CAAC,IAAI,GAAG,IAAI,CAAC;QAE5B,6BAAqB,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvC,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AAxmCD,wBAwmCC"} \ No newline at end of file diff --git a/lib/compiler/printer.d.ts b/lib/src/compiler/printer.d.ts similarity index 100% rename from lib/compiler/printer.d.ts rename to lib/src/compiler/printer.d.ts diff --git a/lib/compiler/printer.js b/lib/src/compiler/printer.js similarity index 98% rename from lib/compiler/printer.js rename to lib/src/compiler/printer.js index 950d76b..391a5d5 100644 --- a/lib/compiler/printer.js +++ b/lib/src/compiler/printer.js @@ -206,6 +206,11 @@ class Printer { this.emitNode(expr.name); break; } + case 0 /* Unknown */: + { + // TODO: throw exception? + break; + } default: { if (utils_1.isToken(node)) { diff --git a/lib/src/compiler/printer.js.map b/lib/src/compiler/printer.js.map new file mode 100644 index 0000000..42db170 --- /dev/null +++ b/lib/src/compiler/printer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"printer.js","sourceRoot":"","sources":["../../../src/compiler/printer.ts"],"names":[],"mappings":";;AACA,uCAA0C;AAC1C,mCAA8C;AAE9C;IAsRI;QAnRA,cAAS,GAAY,IAAI,CAAC;QAoRtB,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IAnRO,KAAK,CAAC,IAAY;QACtB,IAAI,IAAI,CAAC,SAAS,EAAE;YAChB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YAC3C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;SAC1B;QACD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC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,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,SAAS,CAAC,IAAa;QAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpB,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;IAEM,SAAS,CAAC,UAAyB;QACtC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,IAAI,CAAC,KAAK,EAAE,CAAC;IACxB,CAAC;CAKJ;AAzRD,0BAyRC"} \ No newline at end of file diff --git a/lib/compiler/scanner.d.ts b/lib/src/compiler/scanner.d.ts similarity index 98% rename from lib/compiler/scanner.d.ts rename to lib/src/compiler/scanner.d.ts index ac5bbd8..a4dea59 100644 --- a/lib/compiler/scanner.d.ts +++ b/lib/src/compiler/scanner.d.ts @@ -37,6 +37,7 @@ export declare class Scanner { scan(): SyntaxKind; getLine(): number; getChar(): number; + getCurrentPos(): number; getStartPos(): number; getTokenPos(): number; getTokenValue(): string; diff --git a/lib/compiler/scanner.js b/lib/src/compiler/scanner.js similarity index 99% rename from lib/compiler/scanner.js rename to lib/src/compiler/scanner.js index 63200db..3d92119 100644 --- a/lib/compiler/scanner.js +++ b/lib/src/compiler/scanner.js @@ -654,6 +654,9 @@ class Scanner { getChar() { return this.pos - this.char; } + getCurrentPos() { + return this.pos; + } getStartPos() { return this.startPos; } diff --git a/lib/src/compiler/scanner.js.map b/lib/src/compiler/scanner.js.map new file mode 100644 index 0000000..2cd5f05 --- /dev/null +++ b/lib/src/compiler/scanner.js.map @@ -0,0 +1 @@ +{"version":3,"file":"scanner.js","sourceRoot":"","sources":["../../../src/compiler/scanner.ts"],"names":[],"mappings":";;AAAA,mCAAmG;AAMnG,MAAM,gBAAgB,GAAoC,IAAI,GAAG,CAAC;IAC9D,CAAC,SAAS,0BAA4B;IACtC,CAAC,QAAQ,yBAA2B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;oBACD,IAAI,CAAC,KAAK,CAAC,oCAAoC,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;oBAClE,IAAI,CAAC,GAAG,EAAE,CAAC;oBACX,OAAO,IAAI,CAAC,KAAK,kBAAqB,CAAC;aAC9C;SACJ;IACL,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC;IAChC,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEM,WAAW;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAEM,YAAY;QACf,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACxD,CAAC;IAEM,UAAU;QACd,OAAO,IAAI,CAAC,OAAO,CAAC;IACvB,CAAC;CACJ;AApkBD,0BAokBC"} \ No newline at end of file diff --git a/lib/compiler/types.d.ts b/lib/src/compiler/types.d.ts similarity index 100% rename from lib/compiler/types.d.ts rename to lib/src/compiler/types.d.ts diff --git a/lib/compiler/types.js b/lib/src/compiler/types.js similarity index 100% rename from lib/compiler/types.js rename to lib/src/compiler/types.js diff --git a/lib/src/compiler/types.js.map b/lib/src/compiler/types.js.map new file mode 100644 index 0000000..7e3e5c8 --- /dev/null +++ b/lib/src/compiler/types.js.map @@ -0,0 +1 @@ +{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/compiler/types.ts"],"names":[],"mappings":";;AAAA,eAAe;AACf,IAAkB,cAsIjB;AAtID,WAAkB,cAAc;IAC5B,qEAAiB,CAAA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AAkB,SA8BjB;AA9BD,WAAkB,SAAS;IACvB,+CAAgC,CAAA;IAChC,6CAAgC,CAAA;IAChC,+CAAgC,CAAA;IAChC,yCAAgC,CAAA;IAChC,0CAAgC,CAAA;IAChC,4CAAgC,CAAA;IAChC,gDAAgC,CAAA;IAChC,mDAAgC,CAAA;IAChC,6DAAgC,CAAA;IAChC,+DAAgC,CAAA;IAChC,gEAAiC,CAAA;IACjC,4CAAiC,CAAA;IACjC,4CAAiC,CAAA;IACjC,gDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,mDAAiC,CAAA;IACjC,+CAAiC,CAAA;IACjC,kDAAiC,CAAA;IAEjC,wDAAiC,CAAA;IAEjC,qDAAiC,CAAA;IAEjC,+CAAiC,CAAA;IACjC,iDAAiC,CAAA;IAEjC,eAAe;IACf,kDAAyD,CAAA;IACzD,gDAAyB,CAAA;AAC7B,CAAC,EA9BiB,SAAS,GAAT,iBAAS,KAAT,iBAAS,QA8B1B;AA+CD,IAAkB,cAGjB;AAHD,WAAkB,cAAc;IAC5B,iEAA4C,CAAA;IAC5C,uEAA4C,CAAA;AAChD,CAAC,EAHiB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAG/B;AA8SD,EAAE;AACF,cAAc;AACd,EAAE;AAEF,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iEAAO,CAAA;IACP,6DAAK,CAAA;IACL,iEAAO,CAAA;AACX,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"} \ No newline at end of file diff --git a/lib/compiler/utils.d.ts b/lib/src/compiler/utils.d.ts similarity index 100% rename from lib/compiler/utils.d.ts rename to lib/src/compiler/utils.d.ts diff --git a/lib/compiler/utils.js b/lib/src/compiler/utils.js similarity index 100% rename from lib/compiler/utils.js rename to lib/src/compiler/utils.js diff --git a/lib/src/compiler/utils.js.map b/lib/src/compiler/utils.js.map new file mode 100644 index 0000000..eca590f --- /dev/null +++ b/lib/src/compiler/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/compiler/utils.ts"],"names":[],"mappings":";;AAAA,8BAA8B;AAE9B;;;GAGG;AACH,iBAAwB,CAAU;IAC9B,OAAe,CAAC,CAAC,IAAI,sBAAkC,IAAY,CAAC,CAAC,IAAI,uBAAiC,CAAC;AAC/G,CAAC;AAFD,0BAEC;AAED,wBAA+B,KAAoB;IAC/C,QAAQ,KAAK,EAAE;QACX,2BAAgC;QAChC,4BAAiC;QACjC;YACI,OAAO,IAAI,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AARD,wCAQC;AAED,2BAAkC,KAAoB;IAClD,OAAe,KAAK,6BAAwC,IAAY,KAAK,6BAAuC,CAAC;AACzH,CAAC;AAFD,8CAEC;AAED,2BAAkC,KAAoB;IAClD,IAAI,6BAAgD,KAAK,IAAI,6BAA+C,KAAK,EAAE;QAC/G,OAAO,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AALD,8CAKC;AAED,gCAAuC,KAAoB;IACvD,QAAQ,KAAK,EAAE;QACX,+BAAmC;QACnC,gCAAoC;QACpC;YACI,OAAO,IAAI,CAAC;KACnB;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AARD,wDAQC;AAED,8BAAqC,KAAoB;IACrD,OAAO,KAAK,0BAA+B,IAAI,KAAK,mCAAwC,CAAC;AACjG,CAAC;AAFD,oDAEC;AAED,8BAAqC,KAAoB;IACrD,OAAO,KAAK,wBAA6B,IAAI,KAAK,6BAAkC,CAAC;AACzF,CAAC;AAFD,oDAEC;AAED,gCAAuC,IAAa;IAChD,QAAQ,IAAI,CAAC,IAAI,EAAE;QACf;YACI,OAAO,oBAAoB,CAAuB,IAAK,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAChF;YACI,OAAO,sBAAsB,CAA8B,IAAK,CAAC,UAAU,CAAC,CAAC;QACjF;YACI,OAAO,KAAK,CAAC;KACpB;AACL,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AAU,CAAC,CAAC;QACpE;YACI,OAAO,SAAS,CAAC,MAAM,EAAwB,IAAK,CAAC,IAAI,CAAC,CAAC;KAClE;AACL,CAAC;AAvFD,oCAuFC;AAED,iCAAwC,IAAa,EAAE,QAA+B,EAAE,GAAW;IAC/F,OAAsB;QAClB,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;QAC/B,QAAQ,EAAE,QAAQ;QAClB,KAAK,EAAE,IAAI,CAAC,GAAG;QACf,MAAM,EAAE,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG;QAC3B,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,GAAG,EAAE,IAAI,CAAC,IAAI;QACd,WAAW,EAAE,GAAG;KACnB,CAAC;AACN,CAAC;AAVD,0DAUC"} \ No newline at end of file diff --git a/lib/sc2mod/archive.d.ts b/lib/src/sc2mod/archive.d.ts similarity index 100% rename from lib/sc2mod/archive.d.ts rename to lib/src/sc2mod/archive.d.ts diff --git a/lib/sc2mod/archive.js b/lib/src/sc2mod/archive.js similarity index 100% rename from lib/sc2mod/archive.js rename to lib/src/sc2mod/archive.js diff --git a/lib/src/sc2mod/archive.js.map b/lib/src/sc2mod/archive.js.map new file mode 100644 index 0000000..e13b2b9 --- /dev/null +++ b/lib/src/sc2mod/archive.js.map @@ -0,0 +1 @@ +{"version":3,"file":"archive.js","sourceRoot":"","sources":["../../../src/sc2mod/archive.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yBAAwB;AACxB,6BAA4B;AAC5B,6BAA4B;AAC5B,6BAA4B;AAC5B,8BAA8B;AAC9B,kCAAkC;AAClC,qCAAqC;AACrC,sCAAsC;AAEtC,sBAA6B,SAAiB;IAC1C,OAAO,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;AAC5E,CAAC;AAFD,oCAEC;AAED,mCAA0C,SAAiB;IACvD,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC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qB,CAAC,IAAI,CAAC,CAAC;QACtE,qBAAgB,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAG5D,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9D,IAAI,WAAW,EAAE;YACb,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACtC;IACL,CAAC;IAEY,cAAc;;YACvB,MAAM,CAAC,GAAuB,EAAE,CAAC;YACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC,CAAC;YAClC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC;YACjC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC;YACrC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;KAAA;CACJ;AAxBD,oCAwBC"} \ No newline at end of file diff --git a/lib/sc2mod/datacatalog.d.ts b/lib/src/sc2mod/datacatalog.d.ts similarity index 100% rename from lib/sc2mod/datacatalog.d.ts rename to lib/src/sc2mod/datacatalog.d.ts diff --git a/lib/sc2mod/datacatalog.js b/lib/src/sc2mod/datacatalog.js similarity index 100% rename from lib/sc2mod/datacatalog.js rename to lib/src/sc2mod/datacatalog.js diff --git a/lib/src/sc2mod/datacatalog.js.map b/lib/src/sc2mod/datacatalog.js.map new file mode 100644 index 0000000..f5025be --- /dev/null +++ b/lib/src/sc2mod/datacatalog.js.map @@ -0,0 +1 @@ +{"version":3,"file":"datacatalog.js","sourceRoot":"","sources":["../../../src/sc2mod/datacatalog.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6BAA6B;A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AW,CAAC,CAAC,CAAC,CAAC;wBAC9C,MAAM;iBACb;aACJ;YAED,OAAO,CAAC,SAAS,GAAG,CAAC,CAAC;YACtB,IAAI,CAAC,KAAK,CAAC,EAAE;gBAAE,SAAS;YAExB,IAAI,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,EAAE,MAAM;gBAC1D,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,IAAI,GAAG,EAAE,aAAa,CAAC,SAAS,CAAC,CAAA;gBACjF,IAAI,aAAa,CAAC,SAAS,KAAK,CAAC,CAAC,EAAE;oBAChC,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC;oBAC5B,MAAM;iBACT;aACJ;YAED,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;SACxC;QACD,aAAa,CAAC,SAAS,GAAG,CAAC,CAAC;IAChC,CAAC;IAED,KAAK;QACD,IAAI,CAAC,KAAK,EAAE,CAAC;IACjB,CAAC;IAED,KAAK;QACD,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,EAAwB,CAAC;IACtD,CAAC;IAED,SAAS;QACL,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ;AApDD,sCAoDC"} \ No newline at end of file diff --git a/lib/sc2mod/localization.d.ts b/lib/src/sc2mod/localization.d.ts similarity index 100% rename from lib/sc2mod/localization.d.ts rename to lib/src/sc2mod/localization.d.ts diff --git a/lib/sc2mod/localization.js b/lib/src/sc2mod/localization.js similarity index 100% rename from lib/sc2mod/localization.js rename to lib/src/sc2mod/localization.js diff --git a/lib/src/sc2mod/localization.js.map b/lib/src/sc2mod/localization.js.map new file mode 100644 index 0000000..79dda73 --- /dev/null +++ b/lib/src/sc2mod/localization.js.map @@ -0,0 +1 @@ +{"version":3,"file":"localization.js","sourceRoot":"","sources":["../../../src/sc2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GAAW,EAAE,EAAY;QACxC,IAAI,EAAE,EAAE;YACJ,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;SACzB;QACD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;CACJ;AAPD,oDAOC"} \ No newline at end of file diff --git a/lib/sc2mod/trigger.d.ts b/lib/src/sc2mod/trigger.d.ts similarity index 100% rename from lib/sc2mod/trigger.d.ts rename to lib/src/sc2mod/trigger.d.ts diff --git a/lib/sc2mod/trigger.js b/lib/src/sc2mod/trigger.js similarity index 100% rename from lib/sc2mod/trigger.js rename to lib/src/sc2mod/trigger.js diff --git a/lib/src/sc2mod/trigger.js.map b/lib/src/sc2mod/trigger.js.map new file mode 100644 index 0000000..d9282a7 --- /dev/null +++ b/lib/src/sc2mod/trigger.js.map @@ -0,0 +1 @@ +{"version":3,"file":"trigger.js","sourceRoot":"","sources":["../../../src/sc2mod/trigger.ts"],"names":[],"mappings":";;;;;;;;;;AACA,8BAA8B;AAE9B,IAAkB,WAiBjB;AAjBD,WAAkB,WAAW;IACzB,iDAA2B,CAAA;IAC3B,yDAA2B,CAAA;IAC3B,qDAA2B,CAAA;IAC3B,gDAA2B,CAAA;IAC3B,sDAA2B,CAAA;IAC3B,wEAA2B,CAAA;IAC3B,+DAA2B,CAAA;IAC3B,+DAA2B,CAAA;IAC3B,uDAA2B,CAAA;IAC3B,wDAA4B,CAAA;IAC5B,gEAA4B,CAAA;IAC5B,4DAA4B,CAAA;IAC5B,oDAA4B,CAAA;IAC5B,qEAA4B,CAAA;IAC5B,6DAA4B,CAAA;IAC5B,yDAA4B,CAAA;AAChC,CAAC,EAjBiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAiB5B;AAED;IAMI,YAAmB,SAAuB;QACtC,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;IAC3B,CAAC;IAEM,IAAI;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,IA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AC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;oBAC/C,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;iBAC9B;aACJ;YAED,IAAI,CAAC,aAAa,EAAE;gBAChB,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;aACpC;YAED,OAAO,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;KAAA;CACJ;AApQD,8BAoQC;AAED,qDAAqD;AACrD,8BAA8B;AAC9B,IAAI"} \ No newline at end of file diff --git a/lib/service/completions.d.ts b/lib/src/service/completions.d.ts similarity index 100% rename from lib/service/completions.d.ts rename to lib/src/service/completions.d.ts diff --git a/lib/service/completions.js b/lib/src/service/completions.js similarity index 89% rename from lib/service/completions.js rename to lib/src/service/completions.js index d514ec5..9d89f28 100644 --- a/lib/service/completions.js +++ b/lib/src/service/completions.js @@ -10,7 +10,7 @@ const lsp = require("vscode-languageserver"); const s2meta_1 = require("./s2meta"); function isInComment(sourceFile, pos) { const comment = sourceFile.commentsLineMap.get(utils_2.getLineAndCharacterOfPosition(sourceFile, pos).line); - return comment && pos > comment.pos; + return comment && pos >= comment.pos; } var CompletionFunctionExpand; (function (CompletionFunctionExpand) { @@ -199,11 +199,9 @@ class CompletionsProvider extends provider_1.AbstractProvider { query = currentToken.name.substr(0, offset); } // trigger handlers - if (currentToken && currentToken.kind === 3 /* StringLiteral */) { + if (currentToken && currentToken.kind === 3 /* StringLiteral */ && currentToken.parent.kind === 120 /* CallExpression */) { const callExpr = currentToken.parent; - // trigger handlers - if (callExpr.kind === 120 /* CallExpression */ && - callExpr.expression.kind === 112 /* Identifier */ && + if (callExpr.expression.kind === 112 /* Identifier */ && (callExpr.expression).name === "TriggerCreate") { return { items: this.provideTriggerHandlers(), @@ -211,6 +209,46 @@ class CompletionsProvider extends provider_1.AbstractProvider { }; } } + // include + if (currentToken && currentToken.kind === 3 /* StringLiteral */ && currentToken.pos <= position && currentToken.end >= position && currentToken.parent.kind === 134 /* IncludeStatement */) { + const inclStmt = currentToken.parent; + const offset = position - currentToken.pos; + query = currentToken.text.substr(1, offset - 1).replace(/(\/*)[^\/]+$/, '$1'); + const imap = new Map(); + if (currentToken.text.match(/[^"]$/) || currentToken.end != position) { + for (const uri of this.store.documents.keys()) { + const meta = this.store.getDocumentMeta(uri); + if (!meta.relativeName) + continue; + if (query && !meta.relativeName.toLowerCase().startsWith(query.toLowerCase())) + continue; + const itemPart = meta.relativeName.substr(query.length).split('/'); + if (itemPart.length > 1) { + imap.set(itemPart[0], { + kind: lsp.CompletionItemKind.Folder, + label: itemPart[0], + insertText: itemPart[0] + '/', + detail: meta.archive ? meta.archive.name : null, + data: {}, + }); + } + else { + imap.set(itemPart[0], { + kind: lsp.CompletionItemKind.File, + label: itemPart[0] + '.galaxy', + insertText: itemPart[0], + detail: meta.relativeName + '.galaxy', + documentation: meta.archive ? meta.archive.name : null, + data: {}, + }); + } + } + return { + items: Array.from(imap.values()), + isIncomplete: false, + }; + } + } // presets if (currentToken && this.store.s2metadata) { const elementType = this.store.s2metadata.getElementTypeOfNode(currentToken); diff --git a/lib/src/service/completions.js.map b/lib/src/service/completions.js.map new file mode 100644 index 0000000..936fd0c --- /dev/null +++ b/lib/src/service/completions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../../src/service/completions.ts"],"names":[],"mappings":";;AAEA,iDAAkD;AAClD,yCAA8C;AAC9C,iDAAoD;AACpD,6CAA8E;AAC9E,mCAA+H;AAC/H,iDAA8C;AAC9C,6CAA6C;AAC7C,qCAAoD;AAGpD,qBAAqB,UAAyB,EAAE,GAAW;IACvD,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,GAAG,CAAC,qCAA6B,CAAC,UAAU,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;IACpG,OAAO,OAAO,IAAI,GAAG,IAAI,OAAO,C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U,IAAI,GAAG,CAAC;aAChC;YACD,UAAU,CAAC,UAAU,IAAI,IAAI,CAAC;SACjC;QAED,IAAI,MAAM,EAAE;YACR,UAAU,CAAC,aAAa,GAAG,iCAAwB,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;YAE/E,IAAI,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAElC,QAAQ,IAAI,CAAC,IAAI,EAAE;gBACf;oBACI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;oBACF,IAAK,CAAC,IAAI,GAAG,IAAI,CAAC;gBAC3C,eAAe;gBACnB,mCAAoC;gBACpC,oCAAqC;gBACrC,mCAAoC;gBACpC;oBACI,UAAU,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBACjD,MAAM;aACb;SACJ;QAED,IAAI,UAAU,CAAC,aAAa,EAAE;YAC1B,UAAU,CAAC,aAAa,GAAsB;gBAC1C,IAAI,EAAE,GAAG,CAAC,UAAU,CAAC,QAAQ;gBAC7B,KAAK,EAAE,UAAU,CAAC,aAAa;aAClC,CAAC;SACL;QAED,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AAveD,kDAueC"} \ No newline at end of file diff --git a/lib/service/definitions.d.ts b/lib/src/service/definitions.d.ts similarity index 100% rename from lib/service/definitions.d.ts rename to lib/src/service/definitions.d.ts diff --git a/lib/service/definitions.js b/lib/src/service/definitions.js similarity index 100% rename from lib/service/definitions.js rename to lib/src/service/definitions.js diff --git a/lib/src/service/definitions.js.map b/lib/src/service/definitions.js.map new file mode 100644 index 0000000..32f7487 --- /dev/null +++ b/lib/src/service/definitions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../../src/service/definitions.ts"],"names":[],"mappings":";;AACA,iDAAkD;AAClD,yCAA8C;AAC9C,6CAA8F;AAC9F,mCA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ib/service/diagnostics.d.ts rename to lib/src/service/diagnostics.d.ts index 6ea27cd..d2dd7a1 100644 --- a/lib/service/diagnostics.d.ts +++ b/lib/src/service/diagnostics.d.ts @@ -3,8 +3,12 @@ import { AbstractProvider } from './provider'; export declare type DiagnosticsCallback = (a: string) => void; export declare class DiagnosticsProvider extends AbstractProvider { private reporter?; - private translateDiagnostics(sourceFile, origDiagnostics); + private translateDiagnostics(sourceFile, origDiagnostics, source); subscribe(uri: string): void; checkFile(documentUri: string): void; provideDiagnostics(uri: string): lsp.Diagnostic[]; + checkFileRecursively(documentUri: string): { + success: boolean; + diagnostics: lsp.PublishDiagnosticsParams[]; + }; } diff --git a/lib/service/diagnostics.js b/lib/src/service/diagnostics.js similarity index 53% rename from lib/service/diagnostics.js rename to lib/src/service/diagnostics.js index 9ba67b2..3351564 100644 --- a/lib/service/diagnostics.js +++ b/lib/src/service/diagnostics.js @@ -6,7 +6,7 @@ const checker_1 = require("../compiler/checker"); const binder_1 = require("../compiler/binder"); const utils_1 = require("./utils"); class DiagnosticsProvider extends provider_1.AbstractProvider { - translateDiagnostics(sourceFile, origDiagnostics) { + translateDiagnostics(sourceFile, origDiagnostics, source) { let lspDiagnostics = []; for (let dg of origDiagnostics) { lspDiagnostics.push({ @@ -16,6 +16,7 @@ class DiagnosticsProvider extends provider_1.AbstractProvider { end: utils_1.getLineAndCharacterOfPosition(sourceFile, dg.start + dg.length) }, message: dg.messageText, + source, }); } return lspDiagnostics; @@ -29,14 +30,31 @@ class DiagnosticsProvider extends provider_1.AbstractProvider { sourceFile.additionalSyntacticDiagnostics = checker.checkSourceFile(sourceFile, true); } provideDiagnostics(uri) { - let diagnostics = []; const sourceFile = this.store.documents.get(uri); - const parseDiag = sourceFile.parseDiagnostics; - diagnostics = diagnostics.concat(parseDiag); - const checkerDiag = sourceFile.additionalSyntacticDiagnostics; - diagnostics = diagnostics.concat(checkerDiag); - this.console.info(`${uri} - ${parseDiag.length} - ${checkerDiag.length}`); - return this.translateDiagnostics(sourceFile, diagnostics); + let parseDiag = sourceFile.parseDiagnostics; + let checkerDiag = sourceFile.additionalSyntacticDiagnostics; + this.console.log(`${uri} - ${parseDiag.length} - ${checkerDiag.length}`); + if (parseDiag.length > 100) + parseDiag = parseDiag.slice(0, 100); + if (checkerDiag.length > 100) + checkerDiag = checkerDiag.slice(0, 100); + return [].concat(this.translateDiagnostics(sourceFile, parseDiag, 'parser'), this.translateDiagnostics(sourceFile, checkerDiag, 'typecheck')); + } + checkFileRecursively(documentUri) { + const checker = new checker_1.TypeChecker(this.store); + const sourceFile = this.store.documents.get(documentUri); + const result = checker.checkSourceFileRecursively(sourceFile); + const ld = []; + for (const [itUri, itDg] of result.diagnostics) { + ld.push({ + uri: itUri, + diagnostics: this.translateDiagnostics(this.store.documents.get(itUri), itDg, 'verify'), + }); + } + return { + success: result.success, + diagnostics: ld, + }; } } exports.DiagnosticsProvider = DiagnosticsProvider; diff --git a/lib/src/service/diagnostics.js.map b/lib/src/service/diagnostics.js.map new file mode 100644 index 0000000..2512188 --- /dev/null +++ b/lib/src/service/diagnostics.js.map @@ -0,0 +1 @@ +{"version":3,"file":"diagnostics.js","sourceRoot":"","sources":["../../../src/service/diagnostics.ts"],"names":[],"mappings":";;AAAA,6CAA6C;AAE7C,yCAA8C;AAE9C,iDAAkD;AAClD,+CAAsD;AACtD,mCAAwD;AAIxD,yBAAiC,SAAQ,2BAAgB;IAG7C,oBAAoB,CAAC,UAAyB,EAAE,eAAgC,EAAE,MAAc;QACpG,IAAI,cAAc,GAAqB,EAAE,CAAC;QAE1C,KAAK,IAAI,EAAE,IAAI,eAAe,EAAE;YAC5B,cAAc,CAAC,IAAI,CAAC;gBAChB,QAAQ,EAAE,GAAG,CAAC,kBAAkB,CAAC,KAAK;gBACtC,KAAK,EAAE;oBACH,KAAK,EAAE,qCAA6B,CAAC,UAAU,EAAE,EAAE,CAAC,KAAK,CAAC;oBAC1D,GAAG,EAAE,qCAA6B,CAAC,UAAU,EAAE,EAAE,CA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AC,oBAAoB,CAAC,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC,CAClE,CAAC;IACN,CAAC;IAEM,oBAAoB,CAAC,WAAmB;QAC3C,MAAM,OAAO,GAAG,IAAI,qBAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC5C,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACzD,MAAM,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,UAAU,CAAC,CAAC;QAE9D,MAAM,EAAE,GAAmC,EAAE,CAAC;QAC9C,KAAK,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,WAAW,EAAE;YAC5C,EAAE,CAAC,IAAI,CAAC;gBACJ,GAAG,EAAE,KAAK;gBACV,WAAW,EAAE,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,QAAQ,CAAC;aAC1F,CAAC,CAAA;SACL;QAED,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,WAAW,EAAE,EAAE;SAClB,CAAC;IACN,CAAC;CACJ;AAlED,kDAkEC"} \ No newline at end of file diff --git a/lib/service/hover.d.ts b/lib/src/service/hover.d.ts similarity index 100% rename from lib/service/hover.d.ts rename to lib/src/service/hover.d.ts diff --git a/lib/service/hover.js b/lib/src/service/hover.js similarity index 100% rename from lib/service/hover.js rename to lib/src/service/hover.js diff --git a/lib/src/service/hover.js.map b/lib/src/service/hover.js.map new file mode 100644 index 0000000..9c5dc3d --- /dev/null +++ b/lib/src/service/hover.js.map @@ -0,0 +1 @@ +{"version":3,"file":"hover.js","sourceRoot":"","sources":["../../../src/service/hover.ts"],"names":[],"mappings":";;AACA,iDAAkD;AAClD,yCAA8C;AAE9C,mCAA6G;AAC7G,iDAA8C;AAC9C,qCAAoD;AAGpD,mBAA2B,SA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AI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC1C;QACD,OAAO,CAAC,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,OAAO,CAAC,CAAC;QAE7C,yDAAyD;QACzD,wEAAwE;QACxE,IAAI;QACJ,qDAAqD;QACrD,uFAAuF;QACvF,+DAA+D;QAC/D,SAAS;QACT,oCAAoC;QACpC,yDAAyD;QACzD,2BAA2B;QAC3B,QAAQ;QACR,oFAAoF;QACpF,IAAI;QACJ,IAAI,MAAM,CAAC,KAAK,oBAA0B,EAAE;YACxC,OAAO,CAAC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,WAAW,GAAG,GAAG,CAAC,CAAC;SACnE;QAED,MAAM,IAAI,GAAG,iCAAwB,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC1D,IAAI,IAAI,EAAE;YACN,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACtB;QAED,OAAkB;YACd,QAAQ,EAAE,OAAO;YACjB,KAAK,EAAE;gBACH,KAAK,EAAE,qCAA6B,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,CAAC;gBAClE,GAAG,EAAE,qCAA6B,CAAC,UAAU,EAAE,YAAY,CAAC,GAAG,CAAC;aACnE;SACJ,CAAC;IACN,CAAC;CACJ;AAhED,sCAgEC"} \ No newline at end of file diff --git a/lib/service/lsp-run.d.ts b/lib/src/service/lsp-run.d.ts similarity index 100% rename from lib/service/lsp-run.d.ts rename to lib/src/service/lsp-run.d.ts diff --git a/lib/service/lsp-run.js b/lib/src/service/lsp-run.js similarity index 100% rename from lib/service/lsp-run.js rename to lib/src/service/lsp-run.js diff --git a/lib/src/service/lsp-run.js.map b/lib/src/service/lsp-run.js.map new file mode 100644 index 0000000..ced74a3 --- /dev/null +++ b/lib/src/service/lsp-run.js.map @@ -0,0 +1 @@ +{"version":3,"file":"lsp-run.js","sourceRoot":"","sources":["../../../src/service/lsp-run.ts"],"names":[],"mappings":";;AAAA,qCAAkC;AAElC,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;AAC5B,MAAM,CAAC,gBAAgB,EAAE,CAAC,MAAM,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/service/navigation.d.ts b/lib/src/service/navigation.d.ts similarity index 100% rename from lib/service/navigation.d.ts rename to lib/src/service/navigation.d.ts diff --git a/lib/service/navigation.js b/lib/src/service/navigation.js similarity index 98% rename from lib/service/navigation.js rename to lib/src/service/navigation.js index 5333282..a8752e7 100644 --- a/lib/service/navigation.js +++ b/lib/src/service/navigation.js @@ -25,7 +25,7 @@ class NavigationProvider extends provider_1.AbstractProvider { getDocumentSymbols(uri) { const sourceFile = this.store.documents.get(uri); if (!sourceFile) - return; + return []; return collectDeclarations(sourceFile); } getWorkspaceSymbols(query) { diff --git a/lib/src/service/navigation.js.map b/lib/src/service/navigation.js.map new file mode 100644 index 0000000..0920b0d --- /dev/null +++ b/lib/src/service/navigation.js.map @@ -0,0 +1 @@ +{"version":3,"file":"navigation.js","sourceRoot":"","sources":["../../../src/service/navigation.ts"],"names":[],"mappings":";;AACA,6CAAiD;AACjD,mCAAsC;AACtC,yCAA8C;AAE9C,6BAA6B,UAAsB;IAC/C,IAAI,YAAY,GAAuB,EAAE,CAAC;IAE1C,6BAA6B,IAAsB;QAC/C,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC5B,CAAC;IAED,mBAAmB,IAAU;QACzB,IACI,IAAI,CAAC,IAAI,kCAAmC;YAC5C,IAAI,CAAC,IAAI,kCAAmC;YAC5C,IAAI,CAAC,IAAI,gCAAiC,EAC5C;YACE,mBAAmB,CAAmB,IAAI,CAAC,CAAC;SAC/C;QAED,IAAI,IAAI,CAAC,IAAI,yBAA0B,EAAE;YACrC,oBAAY,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;SACjD;IACL,CAAC;IAED,SAAS,CAAC,UAAU,CAAC,CAAC;IAEtB,OAAO,YAAY,CAAC;AACxB,CAAC;AAED,wBAAgC,SAAQ,2BAAgB;IAC7C,kBAAkB,CAAC,GAAW;QACjC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU;YAAE,OAAO,EAAE,CAAC;QAC3B,OAAO,mBAAmB,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC;IAEM,mBAAmB,CAAC,KAAc;QACrC,IAAI,YAAY,GAAuB,EAAE,CAAC;QAE1C,KAAK,EAAE,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE;YACzD,KAAK,MAAM,IAAI,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE;gBAC9C,IAAI,CAAC,KAAK,IAAI,mBAAW,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;oBAC9C,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;oBACxB,IAAI,YAAY,CAAC,MAAM,IAAI,IAAI,EAAE;wBAC7B,MAAM,KAAK,CAAC;qBACf;iBACJ;aACJ;SACJ;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ;AAvBD,gDAuBC"} \ No newline at end of file diff --git a/lib/service/provider.d.ts b/lib/src/service/provider.d.ts similarity index 100% rename from lib/service/provider.d.ts rename to lib/src/service/provider.d.ts diff --git a/lib/service/provider.js b/lib/src/service/provider.js similarity index 100% rename from lib/service/provider.js rename to lib/src/service/provider.js diff --git a/lib/src/service/provider.js.map b/lib/src/service/provider.js.map new file mode 100644 index 0000000..5943be7 --- /dev/null +++ b/lib/src/service/provider.js.map @@ -0,0 +1 @@ +{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/service/provider.ts"],"names":[],"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CAAC;AAzBD,wCAyBC"} \ No newline at end of file diff --git a/lib/service/references.d.ts b/lib/src/service/references.d.ts similarity index 100% rename from lib/service/references.d.ts rename to lib/src/service/references.d.ts diff --git a/lib/service/references.js b/lib/src/service/references.js similarity index 100% rename from lib/service/references.js rename to lib/src/service/references.js diff --git a/lib/src/service/references.js.map b/lib/src/service/references.js.map new file mode 100644 index 0000000..6c0c408 --- /dev/null +++ b/lib/src/service/references.js.map @@ -0,0 +1 @@ +{"version":3,"file":"references.js","sourceRoot":"","sources":["../../../src/service/references.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAG9C,6CAAiD;AACjD,mCAA6G;AAC7G,iDAAkD;AAClD,2CAA6B;AAI5B,CAAC;AAEF,wBAAgC,SAAQ,2BAAgB;IAOpD;QACI,KAAK,EAAE,CAAC;QAPJ,cAAS,GAAmB,EAAE,CAAC;QAQnC,IAAI,CAAC,MAAM,GAAqB;YAC5B,oBAAoB,EAAE,KAAK;SAC9B,CAAC;IACN,CAAC;IAEO,iBAAiB,CAAC,UAAyB,EAAE,KAAc;QAC/D,IAAI,KAAK,CAAC,IAAI,yBAA6B,IAAI,IAAI,CAAC,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,YAAY,EAAE;YAC1G,IAAI,CAAC,SAAS,CAAC,IAAI,CAAe;gBAC9B,GAAG,EAAE,UAAU,CAAC,QAAQ;gBACxB,KAAK,EAAE;oBACH,KAAK,EAAE,qCAA6B,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC;oBAC3D,GAAG,EAAE,qCAA6B,CAAC,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC;iBAC5D;aACJ,CAAC,CAAC;SACN;QACD,oBAAY,CAAC,KAAK,EAAE,CAAC,IAAa,EAAE,EAAE;YAClC,IAAI,CAAC,iBAAiB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACP,CAAC;IAEM,YAAY,CAAC,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C,CAAC;SAClD;QAED,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;CACJ;AA7DD,gDA6DC"} \ No newline at end of file diff --git a/lib/src/service/rename.d.ts b/lib/src/service/rename.d.ts new file mode 100644 index 0000000..17a5f37 --- /dev/null +++ b/lib/src/service/rename.d.ts @@ -0,0 +1,27 @@ +import { AbstractProvider } from './provider'; +import * as gt from '../compiler/types'; +import * as lsp from 'vscode-languageserver'; +import { ReferencesProvider } from './references'; +export interface RenameRequestCached { + params: lsp.TextDocumentPositionParams; + sourceFile: gt.SourceFile; + identifier: gt.Identifier; + symbol: gt.Symbol; + locations?: lsp.Location[]; +} +export declare class RenameProvider extends AbstractProvider { + referencesProvider: ReferencesProvider; + protected recentRequest: RenameRequestCached; + protected getTokenAt(params: lsp.TextDocumentPositionParams): { + sourceFile: gt.SourceFile; + identifier: gt.Identifier; + symbol: gt.Symbol; + }; + protected locationsToWorkspaceEdits(locations: lsp.Location[], newText: string): lsp.WorkspaceEdit; + prefetchLocations(): void; + onPrepareRename(params: lsp.TextDocumentPositionParams): lsp.ResponseError | { + placeholder: string; + range: lsp.Range; + }; + onRenameRequest(params: lsp.RenameParams): lsp.WorkspaceEdit | lsp.ResponseError; +} diff --git a/lib/src/service/rename.js b/lib/src/service/rename.js new file mode 100644 index 0000000..b431922 --- /dev/null +++ b/lib/src/service/rename.js @@ -0,0 +1,100 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const provider_1 = require("./provider"); +const lsp = require("vscode-languageserver"); +const checker_1 = require("../compiler/checker"); +const utils_1 = require("./utils"); +const utils_2 = require("../compiler/utils"); +const vscode_uri_1 = require("vscode-uri"); +function deepEqual(x, y) { + const ok = Object.keys, tx = typeof x, ty = typeof y; + return x && y && tx === 'object' && tx === ty ? (ok(x).length === ok(y).length && + ok(x).every(key => deepEqual(x[key], y[key]))) : (x === y); +} +; +class RenameProvider extends provider_1.AbstractProvider { + getTokenAt(params) { + const sourceFile = this.store.documents.get(params.textDocument.uri); + if (!sourceFile) + return null; + const position = utils_1.getPositionOfLineAndCharacter(sourceFile, params.position.line, params.position.character); + const currentToken = utils_1.getAdjacentIdentfier(position, sourceFile); + if (!currentToken) + return null; + const checker = new checker_1.TypeChecker(this.store); + const symbol = checker.getSymbolAtLocation(currentToken); + if (!symbol) + return null; + return { + sourceFile, + identifier: currentToken, + symbol, + }; + } + locationsToWorkspaceEdits(locations, newText) { + const workspaceEdit = { + changes: {}, + }; + for (const loc of locations) { + if (typeof workspaceEdit.changes[loc.uri] === "undefined") { + workspaceEdit.changes[loc.uri] = []; + } + workspaceEdit.changes[loc.uri].push({ + range: loc.range, + newText: newText, + }); + } + return workspaceEdit; + } + prefetchLocations() { + if (this.recentRequest && !this.recentRequest.locations) { + this.recentRequest.locations = this.referencesProvider.onReferences({ + textDocument: this.recentRequest.params.textDocument, + position: this.recentRequest.params.position, + context: { includeDeclaration: true }, + }, true); + } + } + onPrepareRename(params) { + // const sourceFile = this.store.documents.get(params.textDocument.uri); + const result = this.getTokenAt(params); + if (!result) { + return new lsp.ResponseError(lsp.ErrorCodes.InvalidParams, 'Not an identifier'); + } + for (const decl of result.symbol.declarations) { + const declSourceFile = utils_2.getSourceFileOfNode(decl); + if ((!this.store.rootPath || !vscode_uri_1.default.parse(declSourceFile.fileName).fsPath.startsWith(this.store.rootPath)) && + !this.store.openDocuments.has(declSourceFile.fileName)) { + return new lsp.ResponseError(lsp.ErrorCodes.InvalidParams, 'Declaration not in workspace'); + } + } + this.recentRequest = Object.assign({ params }, result); + return { + placeholder: result.symbol.escapedName, + range: { + start: utils_1.getLineAndCharacterOfPosition(utils_2.getSourceFileOfNode(result.identifier), result.identifier.pos), + end: utils_1.getLineAndCharacterOfPosition(utils_2.getSourceFileOfNode(result.identifier), result.identifier.end), + }, + }; + } + onRenameRequest(params) { + const sourceFile = this.store.documents.get(params.textDocument.uri); + if (!sourceFile) + return; + if (!this.recentRequest || !deepEqual(this.recentRequest.params, { textDocument: params.textDocument, position: params.position }) || this.recentRequest.sourceFile !== sourceFile) { + return; + } + if (!/^[A-Za-z][A-Za-z0-9_]*$/.test(params.newName)) { + return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Invalid name'); + } + if (this.store.resolveGlobalSymbol(params.newName)) { + return new lsp.ResponseError(lsp.ErrorCodes.InvalidRequest, 'Name already in use'); + } + if (this.recentRequest.locations) { + return this.locationsToWorkspaceEdits(this.recentRequest.locations, params.newName); + } + return null; + } +} +exports.RenameProvider = RenameProvider; +//# sourceMappingURL=rename.js.map \ No newline at end of file diff --git a/lib/src/service/rename.js.map b/lib/src/service/rename.js.map new file mode 100644 index 0000000..f1a6dc1 --- /dev/null +++ b/lib/src/service/rename.js.map @@ -0,0 +1 @@ +{"version":3,"file":"rename.js","sourceRoot":"","sources":["../../../src/service/rename.ts"],"names":[],"mappings":";;AAAA,yCAA8C;AAE9C,6CAA6C;AAE7C,iDAAkD;AAClD,mCAA6G;AAC7G,6CAAwD;AACxD,2CAA6B;AAE7B,mBAAmB,CAAM,EAAE,CAAM;IAC7B,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,EAAE,GAAG,OAAO,CAAC,CAAC;IACrD,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAC5C,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM;QAC7B,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAChD,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAClB,CAAC;AAQA,CAAC;AAEF,oBAA4B,SAAQ,2BAAgB;IAItC,UAAU,CAAC,MA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CAAC,OAAO,CAAC,CAAC;SACvF;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AArGD,wCAqGC"} \ No newline at end of file diff --git a/lib/service/s2meta.d.ts b/lib/src/service/s2meta.d.ts similarity index 100% rename from lib/service/s2meta.d.ts rename to lib/src/service/s2meta.d.ts diff --git a/lib/service/s2meta.js b/lib/src/service/s2meta.js similarity index 100% rename from lib/service/s2meta.js rename to lib/src/service/s2meta.js diff --git a/lib/src/service/s2meta.js.map b/lib/src/service/s2meta.js.map new file mode 100644 index 0000000..0e11383 --- /dev/null +++ b/lib/src/service/s2meta.js.map @@ -0,0 +1 @@ +{"version":3,"file":"s2meta.js","sourceRoot":"","sources":["../../../src/service/s2meta.ts"],"names":[],"mappings":";;;;;;;;;;AACA,6CAAwD;AAExD,0CAA0C;AAI1C,mCAAwD;AAExD,MAAM,sBAAsB,GAAG,iBAAiB,CAAC;AACjD,MAAM,mBAAmB,GAAG,YAAY,CAAC;AACzC,MAAM,aAAa,GAAG,IAAI,CAAC;AAC3B,MAAM,OAAO,GAAG,IAAI,CAAC;AAErB;IA+FI,YAAY,SAAuB;QA7FzB,cAAS,GAA8B,IAAI,GAAG,EAAE,CAAC;QACjD,yBAAoB,GAA6B,IAAI,GAAG,EAAE,CAAC;QA6FjE,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IA5FM,oBAAoB,CAAC,EAAgB;QACxC,IAAI,KAAK,GAAa,EAAE,CAAC;QACzB,IAAI,QAAQ,GAAW,EAAE,CAAC;QAE1B,IAAI,EAAE,CAAC,IAAI,EAAE;YACT,QAAQ,GAAG,EAAE,CAAC,IAAI,CAAC;SACtB;aACI;YACD,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YACnF,IAAI,aAAa,EAAE;gBACf,QAAQ,GAAG,aAAa,CAAC,OAAO,CAAC,sBAAsB,E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AAC,GAAG,CAAC,CAAC,CAAC;YACrE,EAAE,QAAQ,CAAC;SACd;QACD,IAAI,QAAQ,CAAC,MAAM,EAAE;YACjB,OAAO,QAAQ,CAAC,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAChF;KACJ;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AA3BD,4DA2BC"} \ No newline at end of file diff --git a/lib/service/server.d.ts b/lib/src/service/server.d.ts similarity index 92% rename from lib/service/server.d.ts rename to lib/src/service/server.d.ts index bc82180..6b6eb3a 100644 --- a/lib/service/server.d.ts +++ b/lib/src/service/server.d.ts @@ -43,5 +43,8 @@ export declare class Server { private onHover(params); private onReferences(params); private onRenameRequest(params); + private onPrepareRename(params); + private onRenamePrefetch(params); + private onDiagnoseDocumentRecursively(params); } export declare function createServer(): lsp.IConnection; diff --git a/lib/service/server.js b/lib/src/service/server.js similarity index 89% rename from lib/service/server.js rename to lib/src/service/server.js index 7e8ef1c..76e5960 100644 --- a/lib/service/server.js +++ b/lib/src/service/server.js @@ -83,14 +83,20 @@ var formatElapsed = function (start, end) { out += elapsed.toFixed(3) + "ms"; return out; }; -function wrapRequest(msg, showArg, argFormatter) { +let reqDepth = 0; +function wrapRequest(showArg = false, argFormatter, msg) { return function (target, propertyKey, descriptor) { const method = descriptor.value; descriptor.value = function (...args) { return __awaiter(this, arguments, void 0, function* () { const server = this; - let log = []; - log.push('### ' + (msg ? msg : propertyKey)); + server.connection.console.info('>'.repeat(++reqDepth) + ' ' + (msg ? msg : propertyKey)); + if (showArg) { + server.connection.console.log(util.inspect(args[0], true, 1, false)); + } + else if (argFormatter) { + server.connection.console.log(util.inspect(argFormatter(args[0]))); + } var start = process.hrtime(); let ret; try { @@ -100,16 +106,10 @@ function wrapRequest(msg, showArg, argFormatter) { } } catch (e) { + ret = null; server.connection.console.error('[' + e.name + '] ' + e.message + '\n' + e.stack); } - log.push(formatElapsed(start, process.hrtime())); - if (ret && ret[Symbol.iterator]) { - log.push(`results: ${ret.length}`); - } - server.log(log.join(' | ')); - if (argFormatter) { - server.log(util.inspect(argFormatter(arguments[0]))); - } + server.connection.console.info('='.repeat(reqDepth--) + ' ' + `${formatElapsed(start, process.hrtime())}`); return ret; }); }; @@ -169,6 +169,8 @@ class Server { this.connection.onHover(this.onHover.bind(this)); this.connection.onReferences(this.onReferences.bind(this)); this.connection.onRenameRequest(this.onRenameRequest.bind(this)); + this.connection.onPrepareRename(this.onPrepareRename.bind(this)); + this.connection.onRequest('document/checkRecursively', this.onDiagnoseDocumentRecursively.bind(this)); return this.connection; } log(msg, ...params) { @@ -305,7 +307,9 @@ class Server { definitionProvider: true, hoverProvider: true, referencesProvider: true, - renameProvider: true, + renameProvider: { + prepareProvider: true, + }, } }; }); @@ -513,6 +517,34 @@ class Server { return this.renameProvider.onRenameRequest(params); }); } + onPrepareRename(params) { + return __awaiter(this, void 0, void 0, function* () { + yield this.flushDocument(params.textDocument.uri); + const r = this.renameProvider.onPrepareRename(params); + if (r && r.range) { + timers_1.setTimeout(() => { + this.onRenamePrefetch(params); + }, 5); + } + return r; + }); + } + onRenamePrefetch(params) { + return __awaiter(this, void 0, void 0, function* () { + yield this.flushDocument(params.textDocument.uri); + return this.renameProvider.prefetchLocations(); + }); + } + onDiagnoseDocumentRecursively(params) { + return __awaiter(this, void 0, void 0, function* () { + yield this.flushDocument(params.uri); + const dg = this.diagnosticsProvider.checkFileRecursively(params.uri); + for (const item of dg.diagnostics) { + this.connection.sendDiagnostics(item); + } + return dg.success; + }); + } } __decorate([ wrapRequest() @@ -536,49 +568,56 @@ __decorate([ wrapRequest() ], Server.prototype, "onDiagnostics", null); __decorate([ - wrapRequest('Opened', true, (payload) => payload.document.uri) + wrapRequest(false, (payload) => { return { document: payload.document.uri }; }) ], Server.prototype, "onDidOpen", null); __decorate([ - wrapRequest('Closed', true, (payload) => payload.document.uri) + wrapRequest(false, (payload) => { return { document: payload.document.uri }; }) ], Server.prototype, "onDidClose", null); __decorate([ - wrapRequest() + wrapRequest(false, (payload) => { return { document: payload.document.uri }; }) ], Server.prototype, "onDidSave", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onDidChangeWatchedFiles", null); __decorate([ - wrapRequest('Indexing', true, (payload) => { - return payload.document.uri; - }) + wrapRequest(false, (payload) => { return { document: payload.document.uri }; }) ], Server.prototype, "onDidFindInWorkspace", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onCompletion", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onCompletionResolve", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onDocumentSymbol", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onWorkspaceSymbol", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onSignatureHelp", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onDefinition", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onHover", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onReferences", null); __decorate([ - wrapRequest() + wrapRequest(true) ], Server.prototype, "onRenameRequest", null); +__decorate([ + wrapRequest(true) +], Server.prototype, "onPrepareRename", null); +__decorate([ + wrapRequest() +], Server.prototype, "onRenamePrefetch", null); +__decorate([ + wrapRequest() +], Server.prototype, "onDiagnoseDocumentRecursively", null); exports.Server = Server; function createServer() { return (new Server()).createConnection(); diff --git a/lib/src/service/server.js.map b/lib/src/service/server.js.map new file mode 100644 index 0000000..87ecd5c --- /dev/null +++ b/lib/src/service/server.js.map @@ -0,0 +1 @@ +{"version":3,"file":"server.js","sourceRoot":"","sources":["../../../src/service/server.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA6C;AAE7C,6BAA6B;AAC7B,6BAA6B;AAC7B,yBAAyB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AsBjB;AAGD;IADC,WAAW,CAAC,KAAK,EAAE,CAAC,OAAoC,EAAE,EAAE,GAAG,OAAO,EAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAC,CAAA,CAAA,CAAC,CAAC;kDAGxG;AAUD;IADC,WAAW,CAAC,IAAI,CAAC;0CAkBjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;iDAGjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;8CAIjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;+CAIjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;6CAQjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;0CASjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;qCAIjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;0CAIjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;6CAIjB;AAGD;IADC,WAAW,CAAC,IAAI,CAAC;6CAUjB;AAGD;IADC,WAAW,EAAE;8CAIb;AAGD;IADC,WAAW,EAAE;2DAQb;AA3dL,wBA4dC;AAED;IACI,OAAO,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,gBAAgB,EAAE,CAAC;AAC7C,CAAC;AAFD,oCAEC"} \ No newline at end of file diff --git a/lib/service/signatures.d.ts b/lib/src/service/signatures.d.ts similarity index 100% rename from lib/service/signatures.d.ts rename to lib/src/service/signatures.d.ts diff --git a/lib/service/signatures.js b/lib/src/service/signatures.js similarity index 100% rename from lib/service/signatures.js rename to lib/src/service/signatures.js diff --git a/lib/src/service/signatures.js.map b/lib/src/service/signatures.js.map new file mode 100644 index 0000000..1e1c689 --- /dev/null +++ b/lib/src/service/signatures.js.map @@ -0,0 +1 @@ +{"version":3,"file":"signatures.js","sourceRoot":"","sources":["../../../src/service/signatures.ts"],"names":[],"mappings":";;AACA,6CAA6C;AAE7C,6CAAsE;AACtE,iDAA8C;AAC9C,iDAAkD;AAClD,yCAA8C;AAC9C,mCAA6C;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AAI,CAAC,aAAa,CAAC,CAAC;SAChD;QAED,OAAO,aAAa,CAAC;IACzB,CAAC;CACJ;AAvHD,gDAuHC"} \ No newline at end of file diff --git a/lib/service/store.d.ts b/lib/src/service/store.d.ts similarity index 83% rename from lib/service/store.d.ts rename to lib/src/service/store.d.ts index 1ea64ef..a921825 100644 --- a/lib/service/store.d.ts +++ b/lib/src/service/store.d.ts @@ -1,7 +1,7 @@ import * as gt from '../compiler/types'; import { SourceFile } from '../compiler/types'; import { S2WorkspaceMetadata } from './s2meta'; -import { SC2Workspace } from '../sc2mod/archive'; +import { SC2Archive, SC2Workspace } from '../sc2mod/archive'; import * as lsp from 'vscode-languageserver'; export declare function createTextDocument(uri: string, text: string): lsp.TextDocument; export declare function createTextDocumentFromFs(filepath: string): lsp.TextDocument; @@ -30,7 +30,15 @@ export declare class S2WorkspaceWatcher extends WorkspaceWatcher { watch(): Promise; } export declare function findWorkspaceArchive(rootPath: string): Promise; -export declare class Store { +export interface SourceFileMeta { + absoluteName: string; + relativeName?: string; + archive?: SC2Archive; +} +export interface IStoreSymbols { + resolveGlobalSymbol(name: string): gt.Symbol | undefined; +} +export declare class Store implements IStoreSymbols { private parser; rootPath?: string; documents: Map; @@ -41,6 +49,7 @@ export declare class Store { getFirstMatchingDocument(partialname: string): gt.SourceFile; updateDocument(document: lsp.TextDocument, check?: boolean): void; updateS2Workspace(workspace: SC2Workspace, lang: string): Promise; + getDocumentMeta(documentUri: string): SourceFileMeta; isUriInWorkspace(documentUri: string): boolean; resolveGlobalSymbol(name: string): gt.Symbol | undefined; } diff --git a/lib/service/store.js b/lib/src/service/store.js similarity index 87% rename from lib/service/store.js rename to lib/src/service/store.js index 26b3996..7906ca4 100644 --- a/lib/service/store.js +++ b/lib/src/service/store.js @@ -175,22 +175,38 @@ class Store { yield this.s2metadata.build(lang); }); } - isUriInWorkspace(documentUri) { + getDocumentMeta(documentUri) { let documentPath = vscode_uri_2.default.parse(documentUri).fsPath; + let meta = { + absoluteName: documentPath, + }; const isWin = process.platform === 'win32'; if (isWin) { documentPath = documentPath.toLowerCase(); } - if (this.rootPath && !this.s2workspace.rootArchive && documentPath.startsWith((isWin ? this.rootPath.toLowerCase() : this.rootPath) + path.sep)) { - return true; + if (this.rootPath && (!this.s2workspace || !this.s2workspace.rootArchive) && documentPath.startsWith((isWin ? this.rootPath.toLowerCase() : this.rootPath) + path.sep)) { + meta.relativeName = documentPath.substr(this.rootPath.length + 1); } - if (this.s2workspace) { + else if (this.s2workspace) { for (const archive of this.s2workspace.allArchives) { - if (documentPath.startsWith((isWin ? archive.directory.toLowerCase() : archive.directory) + path.sep)) - return true; + if (documentPath.startsWith((isWin ? archive.directory.toLowerCase() : archive.directory) + path.sep)) { + meta.relativeName = documentPath.substr(archive.directory.length + 1); + meta.relativeName = meta.relativeName.replace(/^base\.sc2data[\/\\]/i, ''); + meta.archive = archive; + break; + } + } + } + if (meta.relativeName) { + meta.relativeName = meta.relativeName.replace(/\.galaxy$/i, ''); + if (isWin) { + meta.relativeName = meta.relativeName.replace(/\\/g, '/'); } } - return false; + return meta; + } + isUriInWorkspace(documentUri) { + return typeof this.getDocumentMeta(documentUri).relativeName !== 'undefined'; } resolveGlobalSymbol(name) { for (const doc of this.documents.values()) { diff --git a/lib/src/service/store.js.map b/lib/src/service/store.js.map new file mode 100644 index 0000000..a447c62 --- /dev/null +++ b/lib/src/service/store.js.map @@ -0,0 +1 @@ +{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/service/store.ts"],"names":[],"mappings":";;;;;;;;;;AAGA,+CAA4C;AAC5C,qCAA+C;AAC/C,+CAAsE;AACtE,+CAA4H;AAE5H,6CAA6C;AAC7C,6BAA6B;AAC7B,yBAAyB;AACzB,6BAA6B;AAC7B,2CAA6B;AAC7B,iDAAkD;AAClD,2CAA6B;AAE7B,4BAAmC,GAAW,EAAE,IAAY;IACxD,OAAyB;QACrB,GAAG,EAAE,GAAG;QACR,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,C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AAC,CAAC;oBAC3E,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;oBACvB,MAAM;iBACT;aACJ;SACJ;QAED,IAAI,IAAI,CAAC,YAAY,EAAE;YACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAChE,IAAI,KAAK,EAAE;gBACP,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;aAC7D;SACJ;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gBAAgB,CAAC,WAAmB;QACvC,OAAO,OAAO,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,YAAY,KAAK,WAAW,CAAC;IACjF,CAAC;IAEM,mBAAmB,CAAC,IAAY;QACnC,KAAK,MAAM,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,EAAE;YACvC,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBAC9B,OAAO,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;aACvC;SACJ;IACL,CAAC;CACJ;AAjGD,sBAiGC"} \ No newline at end of file diff --git a/lib/service/utils.d.ts b/lib/src/service/utils.d.ts similarity index 100% rename from lib/service/utils.d.ts rename to lib/src/service/utils.d.ts diff --git a/lib/service/utils.js b/lib/src/service/utils.js similarity index 100% rename from lib/service/utils.js rename to lib/src/service/utils.js diff --git a/lib/src/service/utils.js.map b/lib/src/service/utils.js.map new file mode 100644 index 0000000..3b099b9 --- /dev/null +++ b/lib/src/service/utils.js.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/service/utils.ts"],"names":[],"mappings":";;AACA,6CAA+E;AAG/E,yBAAgC,IAAa;IACzC,IAAI,QAAQ,GAAc,EAAE,CA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nC,iBAAiB;YACjB,IAAI,GAAG,KAAK,GAAG,EAAE;gBACb,SAAS,KAAK,CAAC;aAClB;YAED,uBAAuB;YACvB,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,EAAE,EAAE;gBACxB,GAAG,IAAI,EAAE,CAAC;aACb;iBACI,IAAI,GAAG,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE;gBAC9B,GAAG,IAAI,EAAE,CAAC;aACb;iBACI;gBACD,MAAM;aACT;YACD,IAAI,GAAG,KAAK,GAAG,EAAE;gBACb,SAAS,KAAK,CAAC;aAClB;SACJ;QACD,OAAO,KAAK,CAAC;KAChB;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AApCD,kCAoCC"} \ No newline at end of file diff --git a/lib/tools/gmnatives.d.ts b/lib/src/tools/gmnatives.d.ts similarity index 100% rename from lib/tools/gmnatives.d.ts rename to lib/src/tools/gmnatives.d.ts diff --git a/lib/tools/gmnatives.js b/lib/src/tools/gmnatives.js similarity index 100% rename from lib/tools/gmnatives.js rename to lib/src/tools/gmnatives.js diff --git a/lib/src/tools/gmnatives.js.map b/lib/src/tools/gmnatives.js.map new file mode 100644 index 0000000..59f878a --- /dev/null +++ b/lib/src/tools/gmnatives.js.map @@ -0,0 +1 @@ +{"version":3,"file":"gmnatives.js","sourceRoot":"","sources":["../../../src/tools/gmnatives.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,yBAAyB;AACzB,6BAA6B;AAC7B,6BAA6B;AAC7B,4CAAmE;AACnE,0CAA0C;AAC1C,8CAA8C;AAE9C,CAAC;;QACG,MAAM,KAAK,GAAG,IAAI,aAAK,EAAE,CAAC;QAC1B,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE,CAAC;QACvC,MAAM,OAAO,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,oBAAoB,EAAE,CAAC;QAClD,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AC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;SAC7B;IACL,CAAC;CAAA,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/lib/tests/compiler.d.ts b/lib/tests/compiler.d.ts new file mode 100644 index 0000000..53eb506 --- /dev/null +++ b/lib/tests/compiler.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/compiler.js b/lib/tests/compiler.js new file mode 100644 index 0000000..740f46e --- /dev/null +++ b/lib/tests/compiler.js @@ -0,0 +1,29 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const helpers_1 = require("./helpers"); +const chai_1 = require("chai"); +const fs = require("fs"); +require("mocha"); +describe('Compiler', () => { + describe('Parser', () => { + for (let filename of fs.readdirSync('tests/fixtures/parser')) { + it(`should parse "${filename}" without errors`, () => { + const sourceFile = helpers_1.mockupSourceFile('parser', filename); + chai_1.assert.lengthOf(sourceFile.parseDiagnostics, 0); + }); + } + for (let filename of fs.readdirSync('tests/fixtures/parser_recovery')) { + it(`should parse "${filename}" with error recovery`, () => { + const sourceFile = helpers_1.mockupSourceFile('parser_recovery', filename); + chai_1.assert.isAtLeast(sourceFile.parseDiagnostics.length, 1); + }); + } + }); + describe('Store', () => { + it('merge global symbols', () => { + const store = helpers_1.mockupStore(helpers_1.mockupTextDocument('service', 'navigation', 'funcs.galaxy'), helpers_1.mockupTextDocument('service', 'navigation', 'funcs_dupl.galaxy')); + chai_1.assert.lengthOf(store.resolveGlobalSymbol('something').declarations, 3); + }); + }); +}); +//# sourceMappingURL=compiler.js.map \ No newline at end of file diff --git a/lib/tests/compiler.js.map b/lib/tests/compiler.js.map new file mode 100644 index 0000000..4daaca2 --- /dev/null +++ b/lib/tests/compiler.js.map @@ -0,0 +1 @@ +{"version":3,"file":"compiler.js","sourceRoot":"","sources":["../../tests/compiler.ts"],"names":[],"mappings":";;AAEA,uCAAmG;AACnG,+BAA8B;AAE9B,yBAAyB;AACzB,iBAAe;AAEf,QAAQ,CAAC,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 --- /dev/null +++ b/lib/tests/completions.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/completions.js b/lib/tests/completions.js new file mode 100644 index 0000000..7c6148a --- /dev/null +++ b/lib/tests/completions.js @@ -0,0 +1,59 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +require("mocha"); +const chai_1 = require("chai"); +const helpers_1 = require("./helpers"); +const provider_1 = require("../src/service/provider"); +const completions_1 = require("../src/service/completions"); +const utils_1 = require("../src/service/utils"); +function completionsContains(completions, name) { + for (const x of completions.items) { + if (x.label === name) + return true; + } + return false; +} +describe('Completions', () => { + describe('Static', () => { + let store; + let complProvider; + let docsMap; + before(() => __awaiter(this, void 0, void 0, function* () { + store = yield helpers_1.mockupStoreFromDirectory(helpers_1.fixtureFilePath('service', 'completion', 'static')); + complProvider = provider_1.createProvider(completions_1.CompletionsProvider, store); + docsMap = helpers_1.mapStoreFilesByBasename(store); + })); + it('not proposed in other files', () => { + const results = complProvider.getCompletionsAt(docsMap.get('non_static.galaxy').fileName, utils_1.getPositionOfLineAndCharacter(docsMap.get('non_static.galaxy'), 4, 0)); + chai_1.assert.isFalse(completionsContains(results, 'static_a_var')); + chai_1.assert.isFalse(completionsContains(results, 'static_a_func')); + chai_1.assert.isFalse(completionsContains(results, 'static_b_var')); + chai_1.assert.isFalse(completionsContains(results, 'static_b_func')); + }); + it('aware about own A', () => { + const results = complProvider.getCompletionsAt(docsMap.get('static_a.galaxy').fileName, utils_1.getPositionOfLineAndCharacter(docsMap.get('static_a.galaxy'), 4, 0)); + chai_1.assert.isTrue(completionsContains(results, 'static_a_var')); + chai_1.assert.isTrue(completionsContains(results, 'static_a_func')); + chai_1.assert.isFalse(completionsContains(results, 'static_b_var')); + chai_1.assert.isFalse(completionsContains(results, 'static_b_func')); + chai_1.assert.isTrue(completionsContains(results, 'non_static_var')); + }); + it('aware about own B', () => { + const results = complProvider.getCompletionsAt(docsMap.get('static_b.galaxy').fileName, utils_1.getPositionOfLineAndCharacter(docsMap.get('static_b.galaxy'), 4, 0)); + chai_1.assert.isTrue(completionsContains(results, 'static_b_var')); + chai_1.assert.isTrue(completionsContains(results, 'static_b_func')); + chai_1.assert.isFalse(completionsContains(results, 'static_a_var')); + chai_1.assert.isFalse(completionsContains(results, 'static_a_func')); + chai_1.assert.isTrue(completionsContains(results, 'non_static_var')); + }); + }); +}); +//# sourceMappingURL=completions.js.map \ No newline at end of file diff --git a/lib/tests/completions.js.map b/lib/tests/completions.js.map new file mode 100644 index 0000000..55a6907 --- /dev/null +++ b/lib/tests/completions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"completions.js","sourceRoot":"","sources":["../../tests/completions.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iBAAe;AACf,+BAA8B;AAG9B,uCAA+F;AAC/F,sDAAyD;AAEzD,4DAA2F;AAC3F,gDAAqE;AAGrE,6BAA6B,WAA+B,EAAE,IAAY;IACtE,KAAK,MAAM,CAAC,IAAI,WAAW,CAAC,KAAK,EAAE;QAC/B,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI;YAAE,OAAO,IAAI,CAAC;KACrC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IACzB,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;QACpB,IAAI,KAAY,CAAC;QACjB,IAAI,aAAkC,CAAC;QACvC,IAAI,OAAmC,CAAC;QAExC,MAAM,CAAC,GAAS,EAAE;YACd,KAAK,GAAG,MAAM,kCAAwB,CAAC,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CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;YAC7D,aAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;YAC9D,aAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;YACzB,MAAM,OAAO,GAAG,aAAa,CAAC,gBAAgB,CAC1C,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,QAAQ,EACvC,qCAA6B,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CACtE,CAAC;YACF,aAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;YAC5D,aAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;YAC7D,aAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC;YAC7D,aAAM,CAAC,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;YAC9D,aAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC;QAClE,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/debug.d.ts b/lib/tests/debug.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/lib/tests/debug.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/lib/tests/debug.js b/lib/tests/debug.js new file mode 100644 index 0000000..f867aca --- /dev/null +++ b/lib/tests/debug.js @@ -0,0 +1,41 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const parser_1 = require("../src/compiler/parser"); +const store_1 = require("../src/service/store"); +const utils_1 = require("../src/compiler/utils"); +const path = require("path"); +const fs = require("fs"); +it('dbg', () => { + const parser = new parser_1.Parser(); + // const document = createTextDocumentFromFs('tests/fixtures/parser/typedef.galaxy'); + // const sourceFile = parser.parseFile(document.uri, document.getText()); + const filename = 'incomplete_if_identifier.galaxy'; + const document = store_1.createTextDocumentFromFs(path.join('tests/fixtures/type_checker/find', filename)); + const sourceFile = parser.parseFile(filename, document.getText()); + // console.log(sourceFile.parseDiagnostics); + fs.writeFileSync('tests/tmp/' + filename + '.json', utils_1.sourceFileToJSON(sourceFile)); + // function b() { + // return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { + // let method = (descriptor.value); + // descriptor.value = function() { + // console.log('before'); + // method.bind(this)(...arguments); + // console.log('after'); + // // this.c(); + // } + // } + // } + // class test { + // private st: string = 'a'; + // @b() + // method(s: string) { + // console.log('ion', s, this.st); + // } + // c() { + // } + // } + // let g = new test(); + // g.method('lol'); + // g.method('lo2l'); +}); +//# sourceMappingURL=debug.js.map \ No newline at end of file diff --git a/lib/tests/debug.js.map b/lib/tests/debug.js.map new file mode 100644 index 0000000..6d5f1af --- /dev/null +++ b/lib/tests/debug.js.map @@ -0,0 +1 @@ +{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../tests/debug.ts"],"names":[],"mappings":";;AAAA,mDAAgD;AAChD,gDAAoF;AACpF,iDAAyD;AACzD,6BAA6B;AAC7B,yBAAyB;AAEzB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;IACX,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAC5B,qFAAqF;IACrF,yEAAyE;IACzE,MAAM,QAAQ,GAAG,iCAAiC,CAAC;IACnD,MAAM,QAAQ,GAAG,gCAAwB,CAAC,IAAI,CAAC,IAAI,CAAC,kCAAkC,EAAE,QAAQ,CAAC,CAAC,CAAC;IACnG,MAAM,UAAU,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IAClE,4CAA4C;IAC5C,EAAE,CAAC,aAAa,CAAC,YAAY,GAAG,QAAQ,GAAG,OAAO,EAAE,wBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC;IAElF,iBAAiB;IACjB,2FAA2F;IAC3F,qDAAqD;IACrD,0CAA0C;IAC1C,qCAAqC;IACrC,+CAA+C;IAC/C,oCAAoC;IACpC,2BAA2B;IAC3B,YAAY;IACZ,QAAQ;IACR,IAAI;IAEJ,eAAe;IACf,gCAAgC;IAEhC,WAAW;IACX,0BAA0B;IAC1B,0CAA0C;IAC1C,QAAQ;IAER,YAAY;IACZ,QAAQ;IACR,IAAI;IAEJ,sBAAsB;IACtB,mBAAmB;IACnB,oBAAoB;AACxB,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/helpers.d.ts b/lib/tests/helpers.d.ts new file mode 100644 index 0000000..e02e212 --- /dev/null +++ b/lib/tests/helpers.d.ts @@ -0,0 +1,11 @@ +import { SourceFile } from './../src/compiler/types'; +import { TextDocument } from 'vscode-languageserver'; +import { Store } from '../src/service/store'; +export declare function fixtureFilePath(...filepath: string[]): string; +export declare function mockupTextDocument(...filepath: string[]): TextDocument; +export declare function mockupSourceFile(...filepath: string[]): SourceFile; +export declare function mockupStoreDocument(...filepath: string[]): SourceFile; +export declare function mockupStore(...documents: TextDocument[]): Store; +export declare function mockupStoreFromDirectory(directory: string): Promise; +export declare function mockupStoreFromS2Workspace(directory: string, modSources: string[]): Promise; +export declare function mapStoreFilesByBasename(store: Store): Map; diff --git a/lib/tests/helpers.js b/lib/tests/helpers.js new file mode 100644 index 0000000..eb86dd3 --- /dev/null +++ b/lib/tests/helpers.js @@ -0,0 +1,98 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const parser_1 = require("../src/compiler/parser"); +const store_1 = require("../src/service/store"); +const path = require("path"); +const fixturesPath = 'tests/fixtures'; +function fixtureFilePath(...filepath) { + return path.join(fixturesPath, ...filepath); +} +exports.fixtureFilePath = fixtureFilePath; +function mockupTextDocument(...filepath) { + return store_1.createTextDocumentFromFs(fixtureFilePath(...filepath)); +} +exports.mockupTextDocument = mockupTextDocument; +function mockupSourceFile(...filepath) { + const parser = new parser_1.Parser(); + const completeFilePath = fixtureFilePath(...filepath); + const document = store_1.createTextDocumentFromFs(completeFilePath); + return parser.parseFile(path.basename(completeFilePath), document.getText()); +} +exports.mockupSourceFile = mockupSourceFile; +function mockupStoreDocument(...filepath) { + const store = new store_1.Store(); + const document = store_1.createTextDocumentFromFs(fixtureFilePath(...filepath)); + store.updateDocument(document); + return store.documents.get(document.uri); +} +exports.mockupStoreDocument = mockupStoreDocument; +function mockupStore(...documents) { + const store = new store_1.Store(); + for (const doc of documents) { + store.updateDocument(doc); + } + return store; +} +exports.mockupStore = mockupStore; +function mockupStoreFromDirectory(directory) { + return new Promise((resolve, reject) => { + try { + const store = new store_1.Store(); + store.rootPath = directory; + const ws = new store_1.WorkspaceWatcher(directory); + ws.onDidOpen((ev) => { + store.updateDocument(ev.document); + }); + ws.watch(); + resolve(store); + } + catch (err) { + reject(err); + } + }); +} +exports.mockupStoreFromDirectory = mockupStoreFromDirectory; +function mockupStoreFromS2Workspace(directory, modSources) { + return __awaiter(this, void 0, void 0, function* () { + const store = new store_1.Store(); + const ws = new store_1.S2WorkspaceWatcher(directory, modSources); + const workspaces = []; + ws.onDidOpen((ev) => { + store.updateDocument(ev.document); + }); + ws.onDidOpenS2Archive((ev) => { + workspaces.push(ev.workspace); + }); + yield ws.watch(); + for (const ws of workspaces) { + yield store.updateS2Workspace(ws, 'enUS'); + } + return store; + }); +} +exports.mockupStoreFromS2Workspace = mockupStoreFromS2Workspace; +function mapStoreFilesByBasename(store) { + const m = new Map(); + for (const [fullname, sourceFile] of store.documents.entries()) { + m.set(path.basename(fullname), sourceFile); + } + return m; +} +exports.mapStoreFilesByBasename = mapStoreFilesByBasename; +function printDiagnostics(diagnostics) { + const r = []; + for (const diag of diagnostics) { + console.log(diag); + r.push(diag.toString()); + } + return r.join('\n'); +} +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/lib/tests/helpers.js.map b/lib/tests/helpers.js.map new file mode 100644 index 0000000..44bae7a --- /dev/null +++ b/lib/tests/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../tests/helpers.ts"],"names":[],"mappings":";;;;;;;;;;AACA,mDAAgD;AAEhD,gDAA6G;AAE7G,6BAA6B;AAE7B,MAAM,YAAY,GAAG,gBAAgB,CAAC;AAEtC,yBAAgC,GAAG,QAAkB;IACjD,OAAO,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,CAAC;AAChD,CAAC;AAFD,0CAEC;AAED,4BAAmC,GAAG,QAAkB;IACpD,OAAO,gCAAwB,CAAC,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;AAClE,CAAC;AAFD,gDAEC;AAED,0BAAiC,GAAG,QAAkB;IAClD,MAAM,MAAM,GAAG,IAAI,eAAM,EAAE,CAAC;IAC5B,MAAM,gBAAgB,GAAG,eAAe,CAAC,GAAG,QAAQ,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,gCAAwB,CAAC,gBAAgB,CAAC,CAAC;IAC5D,OAAO,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,QAAQ,CAAC,OAAO,EAAE,CA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ib/tests/sc2data.d.ts b/lib/tests/sc2data.d.ts new file mode 100644 index 0000000..53eb506 --- /dev/null +++ b/lib/tests/sc2data.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/sc2data.js b/lib/tests/sc2data.js new file mode 100644 index 0000000..c913ed8 --- /dev/null +++ b/lib/tests/sc2data.js @@ -0,0 +1,57 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +require("mocha"); +const chai_1 = require("chai"); +const path = require("path"); +const archive_1 = require("../src/sc2mod/archive"); +const s2meta_1 = require("../src/service/s2meta"); +const resourcesPath = path.join('tests', 'fixtures'); +describe('SC2Metadata', function () { + const dir = path.resolve(path.join(resourcesPath, 'sc2-map.SC2Map')); + let s2work; + let s2meta; + before(() => __awaiter(this, void 0, void 0, function* () { + const sources = [ + path.resolve(path.join(resourcesPath, 'sc2-data-trigger')), + ]; + const dir = path.resolve(path.join('tests', 'fixtures', 'sc2-map.SC2Map')); + const rootArchive = new archive_1.SC2Archive(path.basename(dir), dir); + s2work = yield archive_1.openArchiveWorkspace(rootArchive, sources); + s2meta = new s2meta_1.S2WorkspaceMetadata(s2work); + yield s2meta.build('enUS'); + })); + it('find elements by name', () => { + chai_1.assert.isDefined(s2meta.findElementByName('libLbty_gf_OrderWorkerstoGatherNearbyResources')); + chai_1.assert.isDefined(s2meta.findElementByName('gf_Action1')); + chai_1.assert.isDefined(s2meta.findElementByName('gf_action_custom_name')); + chai_1.assert.isDefined(s2meta.findElementByName('c_unitCountAll')); + chai_1.assert.isDefined(s2meta.findElementByName('libNtve_ge_FlyerHelperDisplay_c_flyerDisplaySelected')); + }); + it('find preset', () => { + const presetValue = s2meta.findElementByName('c_unitCountAll'); + chai_1.assert.isDefined(s2meta.findPresetDef(presetValue)); + }); + it('documentation', () => { + chai_1.assert.equal(s2meta.getSymbolDoc('c_unitCountAll'), '**Any** - Unit Count Type'); + chai_1.assert.equal(s2meta.getSymbolDoc('UnitCreate'), '**Create Units Facing Angle** (Create `count|Number` `type|Unit` for player `player` at `pos` facing `angle` degrees (`flags`))\n\nCreates units facing a specified angle. Use the *Last Created Unit* and *Last Created Units* functions to refer to the created units.'); + }); + it('documentation function args', () => { + const args = s2meta.getFunctionArgumentsDoc('UnitCreate'); + chai_1.assert.equal(args.length, 6); + chai_1.assert.equal(args[0], '**Count** - `int`'); + chai_1.assert.equal(args[1], '**Type** - `gamelink`'); + chai_1.assert.equal(args[2], '**Flags** - Unit Create Flags'); + }); + it('gamelinks', () => { + chai_1.assert.isTrue(s2meta.getLinksForGameType('Unit').has('AberrationACGluescreenDummy')); + }); +}); +//# sourceMappingURL=sc2data.js.map \ No newline at end of file diff --git a/lib/tests/sc2data.js.map b/lib/tests/sc2data.js.map new file mode 100644 index 0000000..a88adb9 --- /dev/null +++ b/lib/tests/sc2data.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sc2data.js","sourceRoot":"","sources":["../../tests/sc2data.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iBAAe;AACf,+BAA8B;AAC9B,6BAA6B;AAC7B,mDAAuF;AACvF,kDAA4D;AAE5D,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;AAErD,QAAQ,CAAC,aAAa,EAAE;IACpB,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC,CAAC;IACrE,IAAI,MAAoB,CAAC;IACzB,IAAI,MAA2B,CAAC;IAEhC,MAAM,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C,WAAW,CAAC,CAAC,CAAC;IACxD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,eAAe,EAAE,GAAG,EAAE;QACrB,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,gBAAgB,CAAC,EAAE,2BAA2B,CAAC,CAAC;QACjF,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE,2QAA2Q,CAAC,CAAC;IACjU,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,6BAA6B,EAAE,GAAG,EAAE;QACnC,MAAM,IAAI,GAAG,MAAM,CAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC;QAC1D,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC7B,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;QAC3C,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,6BAA6B,CAAC,CAAC;QACrD,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,+BAA+B,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE;QACjB,aAAM,CAAC,MAAM,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC,CAAC;IACzF,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/sc2lib.d.ts b/lib/tests/sc2lib.d.ts new file mode 100644 index 0000000..53eb506 --- /dev/null +++ b/lib/tests/sc2lib.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/sc2lib.js b/lib/tests/sc2lib.js new file mode 100644 index 0000000..d6a15de --- /dev/null +++ b/lib/tests/sc2lib.js @@ -0,0 +1,213 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +require("mocha"); +const path = require("path"); +const fs = require("fs"); +const chai_1 = require("chai"); +const archive_1 = require("../src/sc2mod/archive"); +const trig = require("../src/sc2mod/trigger"); +const cat = require("../src/sc2mod/datacatalog"); +const loc = require("../src/sc2mod/localization"); +const resourcesPath = path.join('tests', 'fixtures', 'sc2-data-trigger'); +describe('SC2Mod', () => { + describe('General', () => { + let archives; + let modArchives; + before(() => __awaiter(this, void 0, void 0, function* () { + archives = yield archive_1.findSC2ArchiveDirectories(resourcesPath); + modArchives = yield archive_1.findSC2ArchiveDirectories(path.join(resourcesPath, 'mods')); + })); + it('should find SC2 archives within directory', () => { + chai_1.assert.isAtLeast(archives.length, 22); + chai_1.assert.isAtLeast(archives.length, 15); + chai_1.assert.include(archives, path.resolve(path.join(resourcesPath, 'mods', 'core.sc2mod'))); + }); + it('should find SC2 all galaxy files', () => __awaiter(this, void 0, void 0, function* () { + const core = new archive_1.SC2Archive('core/sc2.mod', path.join(resourcesPath, 'mods', 'core.sc2mod')); + const gf = yield core.findFiles('**/*.galaxy'); + chai_1.assert.isAbove(gf.length, 124); + })); + }); + context('Archive', () => { + // let s2archive: SC2Archive; + // before(async () => { + // s2archive = new SC2Archive('mods/core.sc2mod', path.resolve(path.join(resourcesPath, 'mods', 'core.sc2mod'))); + // }); + it('dependency list', () => __awaiter(this, void 0, void 0, function* () { + const s2archive = new archive_1.SC2Archive('mods/core.sc2mod', path.resolve(path.join(resourcesPath, 'mods', 'core.sc2mod'))); + const list = yield s2archive.getDependencyList(); + chai_1.assert.equal(list.length, 0); + })); + it('campaign dependency list', () => __awaiter(this, void 0, void 0, function* () { + const s2archive = new archive_1.SC2Archive('campaigns/voidstory.sc2campaign', path.resolve(path.join(resourcesPath, 'campaigns', 'voidstory.sc2campaign'))); + const result = yield archive_1.resolveArchiveDependencyList(s2archive, [resourcesPath]); + chai_1.assert.equal(result.list.length, 7); + chai_1.assert.equal(result.list[0].name, 'mods/core.sc2mod'); + chai_1.assert.equal(result.list[1].name, 'mods/liberty.sc2mod'); + chai_1.assert.equal(result.list[2].name, 'campaigns/liberty.sc2campaign'); + chai_1.assert.equal(result.list[3].name, 'mods/swarm.sc2mod'); + chai_1.assert.equal(result.list[4].name, 'campaigns/swarm.sc2campaign'); + chai_1.assert.equal(result.list[5].name, 'mods/void.sc2mod'); + chai_1.assert.equal(result.list[6].name, 'campaigns/void.sc2campaign'); + })); + it('void mod dependency list', () => __awaiter(this, void 0, void 0, function* () { + const s2archive = new archive_1.SC2Archive('mods/void.sc2mod', path.resolve(path.join(resourcesPath, 'mods', 'void.sc2mod'))); + const result = yield archive_1.resolveArchiveDependencyList(s2archive, [resourcesPath]); + chai_1.assert.equal(result.list.length, 3); + chai_1.assert.equal(result.list[0].name, 'mods/core.sc2mod'); + chai_1.assert.equal(result.list[1].name, 'mods/liberty.sc2mod'); + chai_1.assert.equal(result.list[2].name, 'mods/swarm.sc2mod'); + })); + }); + context('Workspace', () => { + let s2work; + before(() => __awaiter(this, void 0, void 0, function* () { + const sources = [ + path.resolve(path.join(resourcesPath)), + ]; + const dir = path.resolve(path.join('tests', 'fixtures', 'sc2-map.SC2Map')); + const rootArchive = new archive_1.SC2Archive(path.basename(dir), dir); + s2work = yield archive_1.openArchiveWorkspace(rootArchive, sources); + })); + it('load triggers', () => __awaiter(this, void 0, void 0, function* () { + yield s2work.trigComponent.load(); + const trigStore = s2work.trigComponent.getStore(); + chai_1.assert.equal(trigStore.getLibraries().size, 3); + chai_1.assert.isTrue(trigStore.getLibraries().has('Ntve')); + chai_1.assert.isTrue(trigStore.getLibraries().has('Lbty')); + })); + it('load localization', () => __awaiter(this, void 0, void 0, function* () { + yield s2work.locComponent.load(); + chai_1.assert.equal(s2work.locComponent.triggers.elementName('Library/Name/Ntve'), 'Built-In'); + })); + it('localization text for trigger elements', () => __awaiter(this, void 0, void 0, function* () { + yield s2work.trigComponent.load(); + yield s2work.locComponent.load(); + const el = s2work.trigComponent.getStore().findElementById('BF1FA304', trig.FunctionDef); + chai_1.assert.equal(s2work.locComponent.triggers.elementName('Name', el), 'Action1'); + })); + }); + describe('TriggerLib', () => { + const trigStore = new trig.TriggerStore(); + let ntveLib; + before(() => __awaiter(this, void 0, void 0, function* () { + const reader = new trig.XMLReader(trigStore); + ntveLib = yield reader.loadLibrary(fs.readFileSync(path.join(resourcesPath, 'mods', 'core.sc2mod/base.sc2data/TriggerLibs/NativeLib.TriggerLib'), 'utf8')); + })); + it('should find native elements by name', () => { + const el = ntveLib.findElementByName('UnitGetHeight'); + chai_1.assert.isDefined(el); + }); + it('should find non native elements by its full prefixed name', () => { + // const el = ntveLib.findElementByName('libNtve_gf_DifficultyValueInt'); + const el = ntveLib.findElementByName('DifficultyValueInt'); + chai_1.assert.isDefined(el); + }); + it('element IDs should scoped per type', () => { + chai_1.assert.notEqual((ntveLib.findElementById('00000102', trig.ParamDef)), (ntveLib.findElementById('00000102', trig.Param))); + }), + context('FunctionDef', () => { + let el; + let params; + before(() => { + el = ntveLib.findElementByName('UnitCreate'); + chai_1.assert.isDefined(el); + params = el.getParameters(); + chai_1.assert.isDefined(params); + }); + it('should fetch returnType', () => { + chai_1.assert.equal(el.returnType.type, 'unitgroup'); + }); + it('should fetch parameters names', () => { + chai_1.assert.lengthOf(params, 6); + chai_1.assert.equal(params[0].name, 'count'); + chai_1.assert.equal(params[1].name, 'type'); + chai_1.assert.equal(params[2].name, 'flags'); + chai_1.assert.equal(params[3].name, 'player'); + chai_1.assert.equal(params[4].name, 'pos'); + chai_1.assert.equal(params[5].name, 'angle'); + }); + context('parameters type', () => { + it('should fetch primitive', () => { + chai_1.assert.equal(params[0].type.type, 'int'); + }); + it('should fetch gamelink', () => { + chai_1.assert.equal(params[1].type.type, 'gamelink'); + chai_1.assert.equal(params[1].type.gameType, 'Unit'); + }); + it('should fetch preset', () => { + chai_1.assert.equal(params[2].type.type, 'preset'); + const preset = params[2].type.typeElement.resolve(); + chai_1.assert.isDefined(preset); + chai_1.assert.lengthOf(preset.values, 2); + chai_1.assert.equal(preset.values[0].resolve().value, 'c_unitCreateConstruct'); + chai_1.assert.equal(preset.values[1].resolve().value, 'c_unitCreateIgnorePlacement'); + }); + }); + }); + it('find PresetValue by str', () => { + const presetValue = ntveLib.findPresetValueByStr('c_unitCountAll'); + chai_1.assert.isDefined(presetValue); + chai_1.assert.equal(presetValue.name, 'All'); + }); + it('find Preset by PresetValue', () => { + const presetValue = ntveLib.findPresetValueByStr('c_unitCountAll'); + chai_1.assert.isDefined(presetValue); + const preset = ntveLib.findPresetByValue(presetValue); + chai_1.assert.isDefined(preset); + chai_1.assert.equal(preset.name, 'UnitCountType'); + }); + }); + describe('Catalog', () => { + it('file', () => __awaiter(this, void 0, void 0, function* () { + const s2archive = new archive_1.SC2Archive('sc2-map.SC2Map', path.resolve('tests/fixtures/sc2-map.SC2Map')); + const catalogFile = new cat.CatalogFile(s2archive, 'Unit'); + yield catalogFile.load(); + chai_1.assert.isAtLeast(catalogFile.entries.size, 1); + })); + it('store', () => __awaiter(this, void 0, void 0, function* () { + const coreArchive = new archive_1.SC2Archive('core.sc2mod', path.join(resourcesPath, 'mods', 'core.sc2mod')); + const libertyArchive = new archive_1.SC2Archive('liberty.sc2mod', path.join(resourcesPath, 'mods', 'liberty.sc2mod')); + const catalogStore = new cat.CatalogStore('Unit'); + yield catalogStore.addArchive(coreArchive); + yield catalogStore.addArchive(libertyArchive); + catalogStore.merge(); + chai_1.assert.isAtLeast(catalogStore.entries.size, 1); + })); + it('component', () => __awaiter(this, void 0, void 0, function* () { + let s2work; + const sources = [ + path.resolve(resourcesPath), + ]; + const dir = path.resolve(path.join('tests', 'fixtures', 'sc2-map.SC2Map')); + const rootArchive = new archive_1.SC2Archive(path.basename(dir), dir); + s2work = yield archive_1.openArchiveWorkspace(rootArchive, sources); + yield s2work.catalogComponent.load(); + chai_1.assert.isAtLeast(s2work.catalogComponent.getStore().catalogs.size, 99); + chai_1.assert.isTrue(s2work.catalogComponent.getStore().catalogs.has('Actor')); + })); + }); + describe('Localization', () => { + const enus = new loc.LocalizationFile(); + before(() => { + enus.readFromFile(path.join(resourcesPath, 'mods', 'core.sc2mod/enus.sc2data/LocalizedData/TriggerStrings.txt')); + }); + it('should read all entries', () => { + chai_1.assert.isAtLeast(enus.size, 18000); + }); + it('should provide actual values', () => { + chai_1.assert.equal(enus.get('Category/Name/lib_Ntve_00000001'), 'Melee'); + chai_1.assert.equal(enus.get('Category/Name/lib_Ntve_00000003'), 'Comparisons'); + chai_1.assert.isUndefined(enus.get('43bpo24b23')); + }); + }); +}); +//# sourceMappingURL=sc2lib.js.map \ No newline at end of file diff --git a/lib/tests/sc2lib.js.map b/lib/tests/sc2lib.js.map new file mode 100644 index 0000000..5f35dfd --- /dev/null +++ b/lib/tests/sc2lib.js.map @@ -0,0 +1 @@ +{"version":3,"file":"sc2lib.js","sourceRoot":"","sources":["../../tests/sc2lib.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iBAAe;AACf,6BAA6B;AAC7B,yBAAyB;AACzB,+BAA8B;AAC9B,mDAAgJ;AAChJ,8CAA8C;AAC9C,iDAAiD;AACjD,kDAAkD;AAElD,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC;AAEzE,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE;IACpB,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;QACrB,IAAI,QAAkB,CAAC;QACvB,IAAI,WAAqB,CAAC;QAE1B,MAAM,CAAC,GAAS,EA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AI,GAAG,IAAI,GAAG,CAAC,gBAAgB,EAAE,CAAC;QAExC,MAAM,CAAC,GAAG,EAAE;YACR,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,EAAE,2DAA2D,CAAC,CAAC,CAAC;QACrH,CAAC,CAAC,CAAC;QAEH,EAAE,CAAC,yBAAyB,EAAE,GAAG,EAAE;YAC/B,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,8BAA8B,EAAE,GAAG,EAAE;YACpC,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,iCAAiC,CAAC,EAAE,OAAO,CAAC,CAAC;YACnE,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,iCAAiC,CAAC,EAAE,aAAa,CAAC,CAAC;YACzE,aAAM,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC;QAC/C,CAAC,CAAC,CAAA;IACN,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/service.d.ts b/lib/tests/service.d.ts new file mode 100644 index 0000000..53eb506 --- /dev/null +++ b/lib/tests/service.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/service.js b/lib/tests/service.js new file mode 100644 index 0000000..b76f0ad --- /dev/null +++ b/lib/tests/service.js @@ -0,0 +1,402 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const store_1 = require("../src/service/store"); +const provider_1 = require("../src/service/provider"); +const diagnostics_1 = require("../src/service/diagnostics"); +const navigation_1 = require("../src/service/navigation"); +const completions_1 = require("../src/service/completions"); +const signatures_1 = require("../src/service/signatures"); +const definitions_1 = require("../src/service/definitions"); +const hover_1 = require("../src/service/hover"); +const references_1 = require("../src/service/references"); +const utils_1 = require("../src/service/utils"); +const helpers_1 = require("./helpers"); +const lsp = require("vscode-languageserver"); +const chai_1 = require("chai"); +const path = require("path"); +require("mocha"); +describe('Service', () => { + describe('Utils', () => { + const sourceFile = helpers_1.mockupSourceFile(path.join('service', 'navigation', 'declarations.galaxy')); + it('getPositionOfLineAndCharacter', () => { + chai_1.assert.equal(utils_1.getPositionOfLineAndCharacter(sourceFile, 0, 0), 0); + chai_1.assert.equal(utils_1.getPositionOfLineAndCharacter(sourceFile, 0, 20), 20); + chai_1.assert.equal(utils_1.getPositionOfLineAndCharacter(sourceFile, 1, 0), 21); + chai_1.assert.equal(utils_1.getPositionOfLineAndCharacter(sourceFile, 6, 20), 91); + }); + it('findPrecedingToken', () => { + chai_1.assert.equal(utils_1.findPrecedingToken(16, sourceFile).name, 'decl_struct'); + chai_1.assert.equal(utils_1.findPrecedingToken(1, sourceFile).kind, 51 /* StructKeyword */); + chai_1.assert.equal(utils_1.findPrecedingToken(20, sourceFile).kind, 4 /* OpenBraceToken */); + chai_1.assert.equal(utils_1.findPrecedingToken(0, sourceFile), undefined); + }); + it('findPrecedingToken "incomplete_if_identifier"', () => { + const sourceFile = helpers_1.mockupSourceFile(path.join('type_checker', 'find', 'incomplete_if_identifier.galaxy')); + const t = utils_1.findPrecedingToken(utils_1.getPositionOfLineAndCharacter(sourceFile, 2, 25), sourceFile); + chai_1.assert.equal(t.kind, 112 /* Identifier */, `not expected ${t.kindName}`); + chai_1.assert.equal(t.name, 'UserDataGetFixed'); + }); + }); + describe('Diagnostics', () => { + const store = new store_1.Store(); + it('should report about parse errors', () => { + const diagnosticsProvider = provider_1.createProvider(diagnostics_1.DiagnosticsProvider, store); + const document = helpers_1.mockupTextDocument(path.join('service', 'diagnostics_parse_error.galaxy')); + store.updateDocument(document); + diagnosticsProvider.subscribe(document.uri); + const diagnostics = diagnosticsProvider.provideDiagnostics(document.uri); + chai_1.assert.isAtLeast(diagnostics.length, 1); + chai_1.assert.equal(diagnostics[0].message, 'Expected SemicolonToken, found CloseBraceToken'); + }); + }); + describe('Navigation', () => { + const fixturesPath = 'tests/fixtures/service/navigation'; + it('should provide symbols navigation per document', () => { + const store = new store_1.Store(); + const navigation = provider_1.createProvider(navigation_1.NavigationProvider, store); + const document = helpers_1.mockupTextDocument('service', 'navigation', 'declarations.galaxy'); + store.updateDocument(document); + const symbolDeclarations = navigation.getDocumentSymbols(document.uri); + chai_1.assert.lengthOf(symbolDeclarations, 4); + chai_1.assert.equal(symbolDeclarations[0].name.name, 'decl_struct'); + chai_1.assert.equal(symbolDeclarations[1].name.name, 'decl_var_string'); + chai_1.assert.equal(symbolDeclarations[2].name.name, 'decl_var_const_static_string'); + chai_1.assert.equal(symbolDeclarations[3].name.name, 'main'); + }); + it('should provide symbols navigation per workspace', () => __awaiter(this, void 0, void 0, function* () { + const store = yield helpers_1.mockupStoreFromDirectory(fixturesPath); + const navigation = provider_1.createProvider(navigation_1.NavigationProvider, store); + const symbolDeclarations = navigation.getWorkspaceSymbols(); + chai_1.assert.lengthOf(symbolDeclarations, 7); + })); + }); + describe('Completions', () => { + const document = helpers_1.mockupTextDocument('service', 'navigation', 'funcs.galaxy'); + const documentStruct = helpers_1.mockupTextDocument('service', 'completion', 'struct.galaxy'); + const documentCompletions = helpers_1.mockupTextDocument('service', 'completion', 'completion.galaxy'); + const documentTrigger = helpers_1.mockupTextDocument('service', 'completion', 'trigger.galaxy'); + const store = helpers_1.mockupStore(document, helpers_1.mockupTextDocument('service', 'navigation', 'declarations.galaxy'), documentStruct, documentCompletions, documentTrigger); + const completionsProvider = provider_1.createProvider(completions_1.CompletionsProvider, store); + completionsProvider.config.functionExpand = 2 /* ArgumentsNull */; + function getCompletionsAt(doc, line, char) { + return completionsProvider.getCompletionsAt(doc.uri, utils_1.getPositionOfLineAndCharacter(store.documents.get(doc.uri), line, char)); + } + it('should provide globaly declared symbols', () => { + const completions = completionsProvider.getCompletionsAt(document.uri, 0); + chai_1.assert.isAbove(completions.items.length, 0); + chai_1.assert.isDefined(completions.items.find((item) => { + return item.label === 'decl_var_string'; + })); + }); + it('should provide localy declared symbols', () => { + const completions = completionsProvider.getCompletionsAt(document.uri, 51); + chai_1.assert.isAbove(completions.items.length, 0); + chai_1.assert.isDefined(completions.items.find((item) => { + return item.label === 'local'; + })); + }); + it('should provide struct scoped symbols', () => { + let completionsList; + completionsList = getCompletionsAt(documentStruct, 14, 9); + chai_1.assert.lengthOf(completionsList.items, 3); + completionsList = getCompletionsAt(documentStruct, 14, 10); + chai_1.assert.lengthOf(completionsList.items, 3); + completionsList = getCompletionsAt(documentStruct, 15, 13); + chai_1.assert.lengthOf(completionsList.items, 1); + completionsList = getCompletionsAt(documentStruct, 15, 14); + chai_1.assert.lengthOf(completionsList.items, 1); + completionsList = getCompletionsAt(documentStruct, 15, 12); + chai_1.assert.lengthOf(completionsList.items, 3); + completionsList = getCompletionsAt(documentStruct, 16, 21); + chai_1.assert.lengthOf(completionsList.items, 1); + chai_1.assert.equal(completionsList.items[0].label, 'submember'); + chai_1.assert.equal(completionsList.items[0].kind, lsp.CompletionItemKind.Property); + chai_1.assert.equal(completionsProvider.resolveCompletion(completionsList.items[0]).detail, 'string submember;'); + completionsList = getCompletionsAt(documentStruct, 17, 18); + chai_1.assert.notEqual(completionsList.items.length, 1); + }); + it('string', () => { + const completions = getCompletionsAt(documentCompletions, 2, 12); + chai_1.assert.equal(completions.items.length, 0); + }); + it('filter suggestions basing on preceding indentifier', () => { + const completions = getCompletionsAt(documentCompletions, 3, 9); + chai_1.assert.equal(completions.items.length, 2); + }); + it('expand functions', () => { + const completions = getCompletionsAt(documentCompletions, 3, 9); + chai_1.assert.equal(completionsProvider.resolveCompletion(completions.items[0]).insertText, 'completion_test(${1:0});$0'); + }); + it('trigger handle function definitions', () => { + let completions = getCompletionsAt(documentTrigger, 24, 19); + chai_1.assert.equal(completions.items.length, 2); + chai_1.assert.equal(completions.items[0].label, 'on_t1'); + chai_1.assert.isTrue(completionsProvider.resolveCompletion(completions.items[0]).insertText === undefined); + completions = getCompletionsAt(documentTrigger, 25, 22); + chai_1.assert.equal(completions.items.length, 0); + completions = getCompletionsAt(documentTrigger, 26, 19); + chai_1.assert.equal(completions.items.length, 2); + }); + }); + describe('Signatures', () => { + const document = helpers_1.mockupTextDocument('service', 'call.galaxy'); + const docSignature = helpers_1.mockupTextDocument('service', 'signature', 'signature.galaxy'); + const docFnref = helpers_1.mockupTextDocument('service', 'signature', 'funcref.galaxy'); + const store = helpers_1.mockupStore(document, helpers_1.mockupTextDocument('service', 'navigation', 'funcs.galaxy'), docSignature, docFnref); + const srcFnref = store.documents.get(docFnref.uri); + const signaturesProvider = provider_1.createProvider(signatures_1.SignaturesProvider, store); + let signature; + it('should provide signature help for global functions', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(document.uri, 28).signatures, 1); + }); + it('should identify active parameter', () => { + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 29).activeParameter, 0, 'no whitespace 1'); + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 30).activeParameter, 1, 'no whitespace 2'); + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 49).activeParameter, 0, 'no whitespace 0 - sec'); + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 50).activeParameter, 1, 'right after comma token, before whitespace'); + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 51).activeParameter, 1, 'after whitespace and comma'); + chai_1.assert.equal(signaturesProvider.getSignatureAt(document.uri, 71).activeParameter, 1, 'after comma empty param'); + }); + it('should properly identify bounds in nested calls', () => { + signature = signaturesProvider.getSignatureAt(docSignature.uri, 115); + chai_1.assert.lengthOf(signature.signatures, 1); + chai_1.assert.equal(signature.signatures[0].label, 'string name_me(int id)'); + signature = signaturesProvider.getSignatureAt(docSignature.uri, 116); + chai_1.assert.lengthOf(signature.signatures, 1); + chai_1.assert.equal(signature.signatures[0].label, 'int randomize()'); + signature = signaturesProvider.getSignatureAt(docSignature.uri, 117); + chai_1.assert.lengthOf(signature.signatures, 1); + chai_1.assert.equal(signature.signatures[0].label, 'string name_me(int id)'); + }); + context('should provide signature help when cursor at: ', () => { + it('end of binary expr, before ")"', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 137).signatures, 1); + }); + it('begining of prefix expr, after "("', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 152).signatures, 1); + }); + it('whitespace, inbetween "(" and ")"', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 172).signatures, 1); + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 171).signatures, 1); + }); + it('whitespace, inbetween "," and prefixed expr of numeric literal', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 189).signatures, 1); + }); + it('prefixed expr of numeric literal, inbetween operand and literal', () => { + chai_1.assert.lengthOf(signaturesProvider.getSignatureAt(docSignature.uri, 195).signatures, 1); + }); + }); + it('funcref', () => { + signature = signaturesProvider.getSignatureAt(docFnref.uri, utils_1.getPositionOfLineAndCharacter(srcFnref, 13, 9)); + chai_1.assert.isDefined(signature); + chai_1.assert.equal(signature.signatures[0].label, 'void fprototype(int a, string b)'); + }); + it('funcref in struct', () => { + signature = signaturesProvider.getSignatureAt(docFnref.uri, utils_1.getPositionOfLineAndCharacter(srcFnref, 14, 16)); + chai_1.assert.isDefined(signature); + }); + it('funcref in structref', () => { + signature = signaturesProvider.getSignatureAt(docFnref.uri, utils_1.getPositionOfLineAndCharacter(srcFnref, 15, 16)); + chai_1.assert.isDefined(signature); + }); + }); + describe('Definition', () => { + const refsDoc = helpers_1.mockupTextDocument('service', 'definition', 'refs.galaxy'); + const headerDoc = helpers_1.mockupTextDocument('service', 'definition', 'header.galaxy'); + const store = helpers_1.mockupStore(headerDoc, refsDoc); + const definitions = provider_1.createProvider(definitions_1.DefinitionProvider, store); + function getDef(document, line, character) { + return definitions.getDefinitionAt(document.uri, utils_1.getPositionOfLineAndCharacter(store.documents.get(document.uri), line, character)); + } + it('should fail gracefully for non identifiers', () => { + chai_1.assert.lengthOf(getDef(refsDoc, 0, 0), 0); + }); + it('should fail gracefully for undeclared symbols', () => { + chai_1.assert.lengthOf(getDef(headerDoc, 13, 0), 0); + }); + it('should locate declarations within the same file', () => { + let loc; + loc = getDef(refsDoc, 2, 8); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: refsDoc.uri, + range: { + start: { + line: 0, + character: 16, + }, + end: { + line: 0, + character: 21, + }, + }, + }, 'func param'); + loc = getDef(refsDoc, 12, 7); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: refsDoc.uri, + range: { + start: { + line: 7, + character: 9, + }, + end: { + line: 7, + character: 14, + }, + }, + }, 'local variable: unit local'); + loc = getDef(refsDoc, 11, 7); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: refsDoc.uri, + range: { + start: { + line: 0, + character: 5, + }, + end: { + line: 0, + character: 9, + }, + }, + }, 'function call: call'); + }); + it('should locate declarations within the same workspace', () => { + let loc; + loc = getDef(refsDoc, 9, 4); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: headerDoc.uri, + range: { + start: { + line: 9, + character: 4, + }, + end: { + line: 9, + character: 9, + }, + }, + }, 'global variable: aglob'); + loc = getDef(refsDoc, 14, 14); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: headerDoc.uri, + range: { + start: { + line: 1, + character: 11, + }, + end: { + line: 1, + character: 20, + }, + }, + }, 'struct property access: submemeber'); + }); + it('should locate types of members in a struct', () => { + let loc; + loc = getDef(headerDoc, 6, 4); + chai_1.assert.isAtLeast(loc.length, 1); + chai_1.assert.deepEqual(loc[0], { + uri: headerDoc.uri, + range: { + start: { + line: 0, + character: 7, + }, + end: { + line: 0, + character: 21, + }, + }, + }, 'struct decl member: container_t::sub'); + }); + }); + describe('Hover', () => { + const hoverDoc = helpers_1.mockupTextDocument('service', 'hover', 'hover.galaxy'); + const store = helpers_1.mockupStore(hoverDoc); + const hoverProvider = provider_1.createProvider(hover_1.HoverProvider, store); + it('parameter', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 8, character: 4 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nint a\n```'); + // assert.isAtLeast(contents.length, 2) + // assert.equal(contents[1], 'parameter of *print_num*'); + }); + it('local var', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 9, character: 4 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nstring b\n```'); + // assert.isAtLeast(contents.length, 2) + // assert.equal(contents[1], 'local variable'); + }); + it('global constant', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 17, character: 14 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nconst int c_test = 0\n```'); + // assert.isAtLeast(contents.length, 2) + // assert.equal(contents[1], 'global constant'); + }); + it('function', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 17, character: 4 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nvoid print_num(int a)\n```'); + }); + it('struct property', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 18, character: 9 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nint a\n```'); + chai_1.assert.isAtLeast(contents.length, 2); + chai_1.assert.equal(contents[1], 'property of `info_t`'); + }); + it('struct', () => { + const info = hoverProvider.getHoverAt({ textDocument: hoverDoc, position: { line: 0, character: 7 } }); + chai_1.assert.isDefined(info); + const contents = info.contents; + chai_1.assert.isAtLeast(contents.length, 1); + chai_1.assert.equal(contents[0], '```galaxy\nstruct info_t {\n\tint a;\n}\n```'); + }); + }); + describe('References', () => { + const refsDoc = helpers_1.mockupTextDocument('service', 'definition', 'refs.galaxy'); + const headerDoc = helpers_1.mockupTextDocument('service', 'definition', 'header.galaxy'); + const store = helpers_1.mockupStore(headerDoc, refsDoc); + const referenceProvider = provider_1.createProvider(references_1.ReferencesProvider, store); + it('local variable', () => { + const result = referenceProvider.onReferences({ textDocument: refsDoc, position: { line: 7, character: 9 }, context: null }); + chai_1.assert.isDefined(result); + chai_1.assert.equal(result.length, 2); + chai_1.assert.equal(result[0].range.start.line, 7); + chai_1.assert.equal(result[1].range.start.line, 12); + }); + it('struct property', () => { + const result = referenceProvider.onReferences({ textDocument: refsDoc, position: { line: 14, character: 10 }, context: null }); + chai_1.assert.isDefined(result); + chai_1.assert.equal(result.length, 2); + chai_1.assert.equal(result[0].uri, headerDoc.uri); + chai_1.assert.equal(result[0].range.start.line, 6); + chai_1.assert.equal(result[1].range.start.line, 14); + }); + }); +}); +//# sourceMappingURL=service.js.map \ No newline at end of file diff --git a/lib/tests/service.js.map b/lib/tests/service.js.map new file mode 100644 index 0000000..44e701d --- /dev/null +++ b/lib/tests/service.js.map @@ -0,0 +1 @@ +{"version":3,"file":"service.js","sourceRoot":"","sources":["../../tests/service.ts"],"names":[],"mappings":";;;;;;;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AAC,CAAC;YAC/B,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;YAC3C,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;YAC5C,aAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/store.d.ts b/lib/tests/store.d.ts new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/lib/tests/store.d.ts @@ -0,0 +1 @@ +export {}; diff --git a/lib/tests/store.js b/lib/tests/store.js new file mode 100644 index 0000000..5944b83 --- /dev/null +++ b/lib/tests/store.js @@ -0,0 +1,34 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const chai_1 = require("chai"); +const vscode_uri_1 = require("vscode-uri"); +const helpers_1 = require("./helpers"); +describe('Store', () => { + // it('resolveWorkspaces', async () => { + // const rootDir = findWorkspaceArchive(path.join('tests', 'fixtures', 'sc2-data-trigger')); + // const watchers = await resolveWorkspaces(path.join('tests', 'fixtures', 'sc2-data-trigger'), []); + // assert.equal(watchers.length, 20); + // assert.equal(path.basename(watchers[19].workspacePath), 'war3data.sc2mod') + // }); + context('S2Workspace', () => __awaiter(this, void 0, void 0, function* () { + let store; + before(() => __awaiter(this, void 0, void 0, function* () { + store = yield helpers_1.mockupStoreFromS2Workspace(path.join('tests', 'fixtures', 'sc2-map.SC2Map'), [path.join('tests', 'fixtures', 'sc2-data-trigger')]); + })); + it('docs', () => { + const doc = store.documents.get(vscode_uri_1.default.file(path.resolve(path.join('tests', 'fixtures', 'sc2-map.SC2Map', 'MapScript.galaxy'))).toString()); + const metadata = store.s2metadata; + chai_1.assert.isDefined(metadata.getSymbolDoc('UnitGetOwner')); + }); + })); +}); +//# sourceMappingURL=store.js.map \ No newline at end of file diff --git a/lib/tests/store.js.map b/lib/tests/store.js.map new file mode 100644 index 0000000..96dec52 --- /dev/null +++ b/lib/tests/store.js.map @@ -0,0 +1 @@ +{"version":3,"file":"store.js","sourceRoot":"","sources":["../../tests/store.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6BAA6B;AAC7B,+BAA8B;AAC9B,2CAA6B;AAG7B,uCAAuD;AAEvD,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;IACnB,wCAAwC;IACxC,gGAAgG;IAChG,wGAAwG;IACxG,yCAAyC;IACzC,iFAAiF;IACjF,MAAM;IAEN,OAAO,CAAC,aAAa,EAAE,GAAS,EAAE;QAC9B,IAAI,KAAY,CAAC;QAEjB,MAAM,CAAC,GAAS,EAAE;YACd,KAAK,GAAG,MAAM,oCAA0B,CACpC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAChD,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,kBAAkB,CAAC,CAAC,CACvD,CAAC;QACN,CAAC,CAAA,CAAC,CAAC;QAEH,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE;YACZ,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,oBAAG,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;YACzI,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAC;YAClC,aAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;IACP,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/lib/tests/typechecker.d.ts b/lib/tests/typechecker.d.ts new file mode 100644 index 0000000..53eb506 --- /dev/null +++ b/lib/tests/typechecker.d.ts @@ -0,0 +1 @@ +import 'mocha'; diff --git a/lib/tests/typechecker.js b/lib/tests/typechecker.js new file mode 100644 index 0000000..460e5ae --- /dev/null +++ b/lib/tests/typechecker.js @@ -0,0 +1,294 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +require("mocha"); +const fs = require("fs"); +const path = require("path"); +const chai_1 = require("chai"); +const tc = require("../src/compiler/checker"); +const checker_1 = require("../src/compiler/checker"); +const helpers_1 = require("./helpers"); +const utils_1 = require("../src/service/utils"); +const binder_1 = require("../src/compiler/binder"); +const vscode_uri_1 = require("vscode-uri"); +function getSymbolAt(checker, sourceFile, line, character) { + const token = utils_1.getTokenAtPosition(utils_1.getPositionOfLineAndCharacter(sourceFile, line, character), sourceFile); + return checker.getSymbolAtLocation(token); +} +function getNodeTypeAt(checker, sourceFile, line, character) { + const token = utils_1.findPrecedingToken(utils_1.getPositionOfLineAndCharacter(sourceFile, line, character), sourceFile); + return checker.getTypeOfNode(token); +} +describe('Checker', () => { + describe('Resolve', () => { + const store = helpers_1.mockupStore(); + const checker = new checker_1.TypeChecker(store); + context('typedef', () => { + let type; + let sourceFile; + before(() => { + const document = helpers_1.mockupTextDocument('type_checker', 'typedef.galaxy'); + store.updateDocument(document); + sourceFile = store.documents.get(document.uri); + }); + it('scalar', () => { + type = getNodeTypeAt(checker, sourceFile, 11, 5); + chai_1.assert.isOk(type.flags & 2097152 /* Typedef */); + type = getNodeTypeAt(checker, sourceFile, 11, 12); + chai_1.assert.isOk(type.flags & 32768 /* Complex */); + }); + it('struct', () => { + type = getNodeTypeAt(checker, sourceFile, 12, 6); + chai_1.assert.isOk(type.flags & 2097152 /* Typedef */); + type = getNodeTypeAt(checker, sourceFile, 12, 13); + chai_1.assert.isOk(type.flags & 8192 /* Struct */); + }); + it('struct deep', () => { + type = getNodeTypeAt(checker, sourceFile, 13, 6); + chai_1.assert.isOk(type.flags & 2097152 /* Typedef */); + type = getNodeTypeAt(checker, sourceFile, 13, 18); + chai_1.assert.isOk(type.flags & 8192 /* Struct */); + chai_1.assert.equal(type.symbol.escapedName, 'obj_t'); + }); + it('struct deep property', () => { + type = getNodeTypeAt(checker, sourceFile, 15, 15); + chai_1.assert.isOk(type.flags & 4 /* Integer */); + }); + it('funcref', () => { + type = getNodeTypeAt(checker, sourceFile, 29, 6); + chai_1.assert.isOk(type instanceof tc.ReferenceType); + chai_1.assert.isOk(type.kind & 111 /* FuncrefKeyword */); + chai_1.assert.isOk(type.declaredType.symbol.escapedName, 'fprototype'); + }); + it('code validation', () => { + const diag = checker.checkSourceFile(sourceFile); + chai_1.assert.equal(diag.length, 0); + }); + }); + context('arrayref', () => { + let type; + let sourceFile; + before(() => { + const document = helpers_1.mockupTextDocument('type_checker', 'arrayref.galaxy'); + store.updateDocument(document); + sourceFile = store.documents.get(document.uri); + }); + it('ref []', () => { + type = getNodeTypeAt(checker, sourceFile, 7, 5); + chai_1.assert.isOk(type instanceof tc.ReferenceType); + chai_1.assert.isOk(type.kind & 109 /* ArrayrefKeyword */); + chai_1.assert.isOk(type.declaredType.flags & 65536 /* Array */); + chai_1.assert.isOk(type.declaredType.elementType.flags & 2 /* String */); + }); + it('ref [][]', () => { + type = getNodeTypeAt(checker, sourceFile, 8, 5); + chai_1.assert.isOk(type instanceof tc.ReferenceType); + chai_1.assert.isOk(type.kind & 109 /* ArrayrefKeyword */); + chai_1.assert.isOk(type.declaredType.flags & 65536 /* Array */); + chai_1.assert.isOk(type.declaredType.elementType.flags & 65536 /* Array */); + }); + it('typedef decl of [][]', () => { + type = getNodeTypeAt(checker, sourceFile, 13, 2); + chai_1.assert.isOk(type.flags & 2097152 /* Typedef */); + chai_1.assert.isOk(type.referencedType.flags & 65536 /* Array */); + chai_1.assert.isOk(type.referencedType.elementType.flags & 65536 /* Array */); + }); + it('typedef var of [][]', () => { + type = getNodeTypeAt(checker, sourceFile, 13, 11); + chai_1.assert.isOk(type.flags & 65536 /* Array */); + }); + }); + it('struct property', () => { + let type; + const document = helpers_1.mockupTextDocument('type_checker', 'struct.galaxy'); + store.updateDocument(document); + const sourceFile = store.documents.get(document.uri); + type = getNodeTypeAt(checker, sourceFile, 19, 21); + chai_1.assert.isAbove(type.flags & 2 /* String */, 0, '.'); + type = getNodeTypeAt(checker, sourceFile, 20, 28); + chai_1.assert.isAbove(type.flags & 4 /* Integer */, 0, '..'); + type = getNodeTypeAt(checker, sourceFile, 22, 27); + chai_1.assert.isAbove(type.flags & 2 /* String */, 0, '[].'); + type = getNodeTypeAt(checker, sourceFile, 23, 37); + chai_1.assert.isAbove(type.flags & 32768 /* Complex */, 0, '[].[].'); + chai_1.assert.equal(type.kind, 101 /* UnitKeyword */); + }); + it('structref property', () => { + let type; + const document = helpers_1.mockupTextDocument('type_checker', 'ref.galaxy'); + store.updateDocument(document); + const sourceFile = store.documents.get(document.uri); + type = getNodeTypeAt(checker, sourceFile, 9, 12); + chai_1.assert.isAbove(type.flags & 4 /* Integer */, 0); + }); + it('funcref array', () => { + let type; + const document = helpers_1.mockupTextDocument('type_checker', 'funcref_arr.galaxy'); + store.updateDocument(document); + const sourceFile = store.documents.get(document.uri); + type = getNodeTypeAt(checker, sourceFile, 2, 31); + chai_1.assert.isAbove(type.flags & 65536 /* Array */, 0); + chai_1.assert.isAbove(type.elementType.flags & 262144 /* Reference */, 0); + }); + }); + describe('Static', () => { + const documentStatic1 = helpers_1.mockupTextDocument('type_checker', 'static_conflict1.galaxy'); + const documentStatic2 = helpers_1.mockupTextDocument('type_checker', 'static_conflict2.galaxy'); + const store = helpers_1.mockupStore(documentStatic1, documentStatic2); + const sourceFileStatic1 = store.documents.get(documentStatic1.uri); + const sourceFileStatic2 = store.documents.get(documentStatic2.uri); + const checker = new checker_1.TypeChecker(store); + it('name non-conflict', () => { + chai_1.assert.equal(checker.checkSourceFile(sourceFileStatic1, true).length, 0); + chai_1.assert.equal(checker.checkSourceFile(sourceFileStatic2, true).length, 0); + }); + }); + describe('Resolve symbol', () => { + const documentStruct = helpers_1.mockupTextDocument('type_checker', 'struct.galaxy'); + const documentRef = helpers_1.mockupTextDocument('type_checker', 'ref.galaxy'); + const store = helpers_1.mockupStore(documentStruct, documentRef); + const sourceFileStruct = store.documents.get(documentStruct.uri); + const sourceFileRef = store.documents.get(documentRef.uri); + const checker = new checker_1.TypeChecker(store); + it('variable', () => { + let symbol; + symbol = getSymbolAt(checker, sourceFileStruct, 14, 0); + chai_1.assert.isDefined(symbol); + }); + it('[]variable', () => { + let symbol; + symbol = getSymbolAt(checker, sourceFileStruct, 15, 0); + chai_1.assert.isDefined(symbol); + }); + it('structref', () => { + let symbol; + symbol = getSymbolAt(checker, sourceFileRef, 9, 11); + chai_1.assert.isDefined(symbol); + symbol = getSymbolAt(checker, sourceFileRef, 10, 11); + chai_1.assert.isDefined(symbol); + }); + }); + describe('Type', () => { + function validateDocument(src) { + const doc = helpers_1.mockupTextDocument('type_checker', 'diagnostics', src); + const store = helpers_1.mockupStore(doc); + const checker = new checker_1.TypeChecker(store); + const sourceFile = store.documents.get(doc.uri); + return checker.checkSourceFile(sourceFile); + } + it('numeric_assignment', () => { + const diagnostics = validateDocument('numeric_assignment.galaxy'); + chai_1.assert.equal(diagnostics.length, 3); + chai_1.assert.equal(diagnostics[0].messageText, 'Type \'1.0\' is not assignable to type \'integer\''); + chai_1.assert.equal(diagnostics[1].messageText, 'Type \'fixed\' is not assignable to type \'integer\''); + chai_1.assert.equal(diagnostics[2].messageText, 'Type \'fixed\' is not assignable to type \'byte\''); + }); + it('numeric_comparison', () => { + const diagnostics = validateDocument('numeric_comparison.galaxy'); + chai_1.assert.equal(diagnostics.length, 2); + chai_1.assert.equal(diagnostics[0].messageText, 'Type \'null\' is not comparable to type \'integer\''); + chai_1.assert.equal(diagnostics[1].messageText, 'Type \'""\' is not comparable to type \'integer\''); + }); + it('string', () => { + const diagnostics = validateDocument('string.galaxy'); + chai_1.assert.equal(diagnostics.length, 0); + }); + it('bool', () => { + const diagnostics = validateDocument('bool.galaxy'); + chai_1.assert.equal(diagnostics.length, 1); + chai_1.assert.equal(diagnostics[0].messageText, 'Type \'1\' is not assignable to type \'bool\''); + }); + it('bitwise', () => { + const diagnostics = validateDocument('bitwise.galaxy'); + chai_1.assert.equal(diagnostics.length, 1); + chai_1.assert.equal(diagnostics[0].messageText, 'Binary \'&\' operation not supported between \'integer\' type and \'false\' type'); + }); + it('complex', () => { + const diagnostics = validateDocument('complex.galaxy'); + chai_1.assert.equal(diagnostics.length, 0); + }); + it('loop', () => { + const diagnostics = validateDocument('loop.galaxy'); + chai_1.assert.equal(diagnostics.length, 2); + chai_1.assert.equal(diagnostics[0].messageText, 'break statement used outside of loop boundaries'); + chai_1.assert.equal(diagnostics[1].messageText, 'continue statement used outside of loop boundaries'); + }); + it('func_call', () => { + const diagnostics = validateDocument('func_call.galaxy'); + chai_1.assert.equal(diagnostics.length, 3); + chai_1.assert.equal(diagnostics[0].messageText, 'Type \'string\' is not assignable to type \'integer\''); + chai_1.assert.equal(diagnostics[1].messageText, 'Type \'integer\' is not assignable to type \'string\''); + chai_1.assert.equal(diagnostics[2].messageText, 'Type \'null\' is not assignable to type \'integer\''); + }); + it('struct', () => { + const diagnostics = validateDocument('struct.galaxy'); + chai_1.assert.equal(diagnostics.length, 5); + chai_1.assert.equal(diagnostics[0].messageText, 'Can only pass basic types'); + chai_1.assert.equal(diagnostics[1].messageText, 'Type \'struct1_t\' is not assignable to type \'struct1_t\''); + chai_1.assert.equal(diagnostics[2].messageText, 'Type \'struct2_t\' is not assignable to type \'struct1_t\''); + chai_1.assert.equal(diagnostics[3].messageText, 'Type \'struct1_t\' is not assignable to type \'struct1_t\''); + chai_1.assert.equal(diagnostics[4].messageText, 'Type \'struct2_t\' is not assignable to type \'structref\''); + }); + it('funcref', () => { + const diagnostics = validateDocument('funcref.galaxy'); + chai_1.assert.equal(diagnostics.length, 3); + chai_1.assert.equal(diagnostics[0].messageText, 'Type \'fn_prototype_c\' is not assignable to type \'funcref\''); + chai_1.assert.equal(diagnostics[1].messageText, 'Expected 1 arguments, got 2'); + chai_1.assert.equal(diagnostics[2].messageText, 'Type \'void\' is not assignable to type \'integer\''); + }); + it('array', () => { + const diagnostics = validateDocument('array.galaxy'); + chai_1.assert.isAtLeast(diagnostics.length, 1); + chai_1.assert.equal(diagnostics[0].messageText, 'Index access on non-array type'); + }); + it('typedef', () => { + const diagnostics = validateDocument('../typedef.galaxy'); + chai_1.assert.equal(diagnostics.length, 0); + }); + it('arrayref', () => { + const diagnostics = validateDocument('../arrayref.galaxy'); + chai_1.assert.equal(diagnostics.length, 0); + }); + }); + describe('Diagnostics', () => { + function checkFile(filename) { + const document = helpers_1.mockupTextDocument('type_checker', filename); + const store = helpers_1.mockupStore(document); + const sourceFile = store.documents.get(document.uri); + const checker = new checker_1.TypeChecker(store); + binder_1.unbindSourceFile(sourceFile, store); + return checker.checkSourceFile(sourceFile, true); + } + describe('Error', () => { + for (let filename of fs.readdirSync(path.resolve('tests/fixtures/type_checker/error'))) { + it(filename, () => { + chai_1.assert.isAtLeast(checkFile(path.join('error', filename)).length, 1); + }); + } + }); + describe('Pass', () => { + for (let filename of fs.readdirSync(path.resolve('tests/fixtures/type_checker/pass'))) { + it(filename, () => { + chai_1.assert.equal(checkFile(path.join('pass', filename)).length, 0); + }); + } + }); + }); + describe('Diagnostics Recursive', () => { + it('simple', () => __awaiter(this, void 0, void 0, function* () { + const store = yield helpers_1.mockupStoreFromDirectory(path.resolve('tests/fixtures/type_checker/diagnostics_recursive/simple')); + const checker = new checker_1.TypeChecker(store); + const sourceFile = store.documents.get(vscode_uri_1.default.file(path.join(store.rootPath, 'MapScript.galaxy')).toString()); + const diagnostics = checker.checkSourceFileRecursively(sourceFile); + chai_1.assert.isTrue(diagnostics.success); + })); + }); +}); +//# sourceMappingURL=typechecker.js.map \ No newline at end of file diff --git a/lib/tests/typechecker.js.map b/lib/tests/typechecker.js.map new file mode 100644 index 0000000..d377809 --- /dev/null +++ b/lib/tests/typechecker.js.map @@ -0,0 +1 @@ +{"version":3,"file":"typechecker.js","sourceRoot":"","sources":["../../tests/typechecker.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,iBAAe;AACf,yBAAyB;AACzB,6BAA6B;AAC7B,+BAA8B;AAC9B,8CAA8C;AAC9C,qDAAsD;AACtD,uCAA6H;AAC7H,gDAA6G;AAG7G,mDAA0D;AAC1D,2CAA6B;AAE7B,qBAAqB,OAAoB,EAAE,UAAyB,EAAE,IAAY,EAAE,SAAiB;IACjG,MAAM,KAAK,GAAG,0BAAkB,CAAC,qCAA6B,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;IACzG,OAAO,OAAO,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAA;AAC7C,CAAC;AAED,uBAAuB,OAAoB,EAAE,UAAyB,EAAE,IAAY,EAAE,SAAiB;IACnG,MAAM,KAAK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