@lcap/nasl-language-server-core 3.14.0-beta.3 → 3.14.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/checker.d.ts.map +1 -1
- package/out/checker.js +7 -1
- package/out/checker.js.map +1 -1
- package/out/reference-manager/reference-manager.d.ts +13 -6
- package/out/reference-manager/reference-manager.d.ts.map +1 -1
- package/out/reference-manager/reference-manager.js +47 -13
- package/out/reference-manager/reference-manager.js.map +1 -1
- package/out/typer/component-def-manager/component-def-manager.d.ts +13 -6
- package/out/typer/component-def-manager/component-def-manager.d.ts.map +1 -1
- package/out/typer/component-def-manager/component-def-manager.js +34 -8
- package/out/typer/component-def-manager/component-def-manager.js.map +1 -1
- package/out/typer/component-def-manager/utils.d.ts.map +1 -1
- package/out/typer/component-def-manager/utils.js.map +1 -1
- package/out/typer/dispatch-def.d.ts.map +1 -1
- package/out/typer/dispatch-def.js +1 -2
- package/out/typer/dispatch-def.js.map +1 -1
- package/out/typer/dispatch-expr.d.ts +2 -1
- package/out/typer/dispatch-expr.d.ts.map +1 -1
- package/out/typer/dispatch-expr.js +19 -16
- package/out/typer/dispatch-expr.js.map +1 -1
- package/out/typer/dispatch-process.d.ts.map +1 -1
- package/out/typer/dispatch-process.js +9 -8
- package/out/typer/dispatch-process.js.map +1 -1
- package/out/typer/dispatch-view.d.ts +5 -5
- package/out/typer/dispatch-view.d.ts.map +1 -1
- package/out/typer/dispatch-view.js +147 -67
- package/out/typer/dispatch-view.js.map +1 -1
- package/out/typer/incremental-update.d.ts +1 -1
- package/out/typer/incremental-update.d.ts.map +1 -1
- package/out/typer/incremental-update.js +7 -17
- package/out/typer/incremental-update.js.map +1 -1
- package/out/typer/solver.d.ts.map +1 -1
- package/out/typer/solver.js +25 -17
- package/out/typer/solver.js.map +1 -1
- package/out/typer/typeManager.d.ts +5 -3
- package/out/typer/typeManager.d.ts.map +1 -1
- package/out/typer/typeManager.js +13 -6
- package/out/typer/typeManager.js.map +1 -1
- package/out/typer/typer.d.ts +25 -3
- package/out/typer/typer.d.ts.map +1 -1
- package/out/typer/typer.js +30 -14
- package/out/typer/typer.js.map +1 -1
- package/out/typer/unifier.d.ts +1 -0
- package/out/typer/unifier.d.ts.map +1 -1
- package/out/typer/unifier.js +19 -4
- package/out/typer/unifier.js.map +1 -1
- package/out/utils/nasl-type-manipulation.d.ts +7 -0
- package/out/utils/nasl-type-manipulation.d.ts.map +1 -0
- package/out/utils/nasl-type-manipulation.js +27 -0
- package/out/utils/nasl-type-manipulation.js.map +1 -0
- package/out/utils/parseTsClassType.d.ts +1 -1
- package/out/utils/parseTsClassType.d.ts.map +1 -1
- package/out/utils/parseTsClassType.js +4 -10
- package/out/utils/parseTsClassType.js.map +1 -1
- package/package.json +6 -5
package/out/checker.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checker.d.ts","sourceRoot":"","sources":["../src/checker.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EAU0F,GAAG,EAMvG,QAAQ,EACT,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACgE,cAAc,EAEpF,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAgC,MAAM,EAAE,MAAM,SAAS,CAAC;AAE/D,oBAAY,QAAQ;IAClB,IAAI,YAAY;IAChB,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,UAAU;IAEzB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAMF,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AAEpE,MAAM,MAAM,kBAAkB,GAAG,GAAG,CAAC,UAAU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EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAqBF,KAAK,eAAe,GAAG;IACrB,GAAG,EAAE,GAAG,CAAC;IACT,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,yBAAyB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC/C,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAiQF;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe;oCAs3HpB,OAAO;sDAPW,gBAAgB,EAAE;;;;sBAfjD,UAAU,GAAG,SAAS;;;6BAqChB,UAAU;2BAsBZ,UAAU;kBA33HnB,UAAU,WAAW,MAAM,YAAY,YAAY;EA24HzE;AAGD,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IAEX,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACrC,mBAAmB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACvC,qBAAqB,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC1C;AAED,eAAO,MAAM,6BAA6B,aAAc,UAAU,sCAAoC,MAAM,gBAAgB,CAmC3H,CAAA"}
|
package/out/checker.js
CHANGED
|
@@ -1902,6 +1902,10 @@ function createErrorDiagnoser(context) {
|
|
|
1902
1902
|
* @param node
|
|
1903
1903
|
*/
|
|
1904
1904
|
function* checkViewElement(node) {
|
|
1905
|
+
// lcap-login 组件需要完全不做任何检查,不报任何错误。里面一大堆脏数据。
|
|
1906
|
+
if (node.tag === 'lcap-login') {
|
|
1907
|
+
return;
|
|
1908
|
+
}
|
|
1905
1909
|
const shouldProvideCurrentCtx = !!(node.slotScope);
|
|
1906
1910
|
let unbindVariables;
|
|
1907
1911
|
if (shouldProvideCurrentCtx) {
|
|
@@ -2008,7 +2012,9 @@ function createErrorDiagnoser(context) {
|
|
|
2008
2012
|
if (processElement || node.type === 'dynamic') {
|
|
2009
2013
|
yield* checkNode(node.destination);
|
|
2010
2014
|
}
|
|
2011
|
-
|
|
2015
|
+
if (node.name === 'externalDestination' && node.type === 'dynamic') {
|
|
2016
|
+
yield* checkNode(node.externalDestination);
|
|
2017
|
+
}
|
|
2012
2018
|
if (node.rules?.length) {
|
|
2013
2019
|
yield* (0, nasl_utils_1.wrapForEachToGenerator)(node.rules, function* (node) {
|
|
2014
2020
|
yield* checkNode(node);
|