@volar/vue-code-gen
Advanced tools
Comparing version 0.34.15 to 0.34.16
@@ -5,3 +5,3 @@ import { CodeGen } from '@volar/code-gen'; | ||
export declare const transformContext: CompilerDOM.TransformContext; | ||
export declare function generate(ts: typeof import('typescript/lib/tsserverlibrary'), sourceLang: string, templateAst: CompilerDOM.RootNode, isVue2: boolean, allowTypeNarrowingInEventExpressions: boolean, cssScopedClasses: string[] | undefined, htmlToTemplate: (htmlStart: number, htmlEnd: number) => { | ||
export declare function generate(ts: typeof import('typescript/lib/tsserverlibrary'), sourceLang: string, templateAst: CompilerDOM.RootNode, isVue2: boolean, experimentalRuntimeMode: 'runtime-dom' | 'runtime-uni-app', allowTypeNarrowingInEventExpressions: boolean, cssScopedClasses: string[] | undefined, htmlToTemplate: (htmlStart: number, htmlEnd: number) => { | ||
start: number; | ||
@@ -8,0 +8,0 @@ end: number; |
@@ -79,4 +79,8 @@ "use strict"; | ||
const functionArgs = []; | ||
for (const param of node.parameters) | ||
for (const param of node.parameters) { | ||
colletVars(ts, param.name, functionArgs); | ||
if (param.type) { | ||
walkIdentifiers(ts, param.type, cb, localVars); | ||
} | ||
} | ||
for (const varName of functionArgs) | ||
@@ -83,0 +87,0 @@ localVars[varName] = ((_b = localVars[varName]) !== null && _b !== void 0 ? _b : 0) + 1; |
{ | ||
"name": "@volar/vue-code-gen", | ||
"version": "0.34.15", | ||
"version": "0.34.16", | ||
"main": "out/index.js", | ||
@@ -19,4 +19,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@volar/code-gen": "0.34.15", | ||
"@volar/source-map": "0.34.15", | ||
"@volar/code-gen": "0.34.16", | ||
"@volar/source-map": "0.34.16", | ||
"@vue/compiler-core": "^3.2.31", | ||
@@ -26,3 +26,3 @@ "@vue/compiler-dom": "^3.2.31", | ||
}, | ||
"gitHead": "5b2db858bb30dcff1b659eaa08d9ad965e6255a4" | ||
"gitHead": "ac00080f9823618b7fcb6170b9dff04b60d1e89c" | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147342
3209
+ Added@volar/code-gen@0.34.16(transitive)
+ Added@volar/source-map@0.34.16(transitive)
- Removed@volar/code-gen@0.34.15(transitive)
- Removed@volar/source-map@0.34.15(transitive)
Updated@volar/code-gen@0.34.16
Updated@volar/source-map@0.34.16