@sap/ux-cds-compiler-facade
Advanced tools
Comparing version 1.13.1 to 1.13.2
@@ -413,3 +413,3 @@ "use strict"; | ||
const namedObj = (0, utils_1.getNameObj)(topLevelArtifact, compileModel.compiler); | ||
node.structuredType = context.converter.convertNameToEdmx(namedObj.absolut); | ||
node.structuredType = context.converter.convertNameToEdmx(namedObj.absolute); | ||
} | ||
@@ -430,5 +430,4 @@ if (node) { | ||
const paramXsn = parentXsnNode?.params?.[param]; | ||
const compiler = context.compileModel.compiler; | ||
return ((0, utils_1.getNameObj)((paramXsn?.items || paramXsn)?._effectiveType, compiler)?.absolute === | ||
types_1.TYPE_NAME_OF_BINDING_PARAMETER); | ||
const path = (paramXsn?.items || paramXsn)?.type?.path || []; | ||
return path?.length === 1 && path[0]?.id === types_1.TYPE_NAME_OF_BINDING_PARAMETER; | ||
}); | ||
@@ -435,0 +434,0 @@ if (bindingParameterNamed) { |
@@ -173,5 +173,7 @@ "use strict"; | ||
const paramXsn = action?.params?.[param]; | ||
return ((0, utils_1.getNameObj)((paramXsn?.items || paramXsn)?._effectiveType, this.compiler)?.absolute === | ||
types_1.TYPE_NAME_OF_BINDING_PARAMETER); | ||
const path = (paramXsn?.items || paramXsn)?.type?.path; | ||
return path?.length === 1 && path[0]?.id === types_1.TYPE_NAME_OF_BINDING_PARAMETER; | ||
}); | ||
const bindingParameter = bindingParamName ? action?.params?.[bindingParamName] : undefined; | ||
const bindingParamOrigin = bindingParameter ? this.getOrigin(bindingParameter) : undefined; | ||
if (!bindingParamName) { | ||
@@ -188,2 +190,5 @@ bindingParamName = getNameFromAnnotation(action, BINDING_PARAMETER_SINGLE); | ||
origin.name += '.' + bindingParamName; | ||
if (origin.location && bindingParamOrigin?.location) { | ||
origin.location.range = bindingParamOrigin.location.range; | ||
} | ||
} | ||
@@ -243,3 +248,3 @@ const bindingParamNode = this.buildNode('param', bindingParamName, parentPath, origin); | ||
const paths = []; | ||
(namespace.path || []).forEach((path) => { | ||
(namespace.name?.path || namespace.path || []).forEach((path) => { | ||
paths.push(path.id); | ||
@@ -346,2 +351,3 @@ }); | ||
} | ||
const path = (typed?.items || typed)?.type?.path || []; | ||
let artifact = typed?.type?._artifact || typed?._effectiveType?.type?._artifact; | ||
@@ -351,3 +357,7 @@ if (!artifact && typed?.items) { | ||
} | ||
if (artifact?.name) { | ||
if (path?.length === 1 && path[0]?.id === types_1.TYPE_NAME_OF_BINDING_PARAMETER) { | ||
node.structuredType = types_1.TYPE_NAME_OF_BINDING_PARAMETER; | ||
node.isEntityType = true; | ||
} | ||
else if (artifact?.name) { | ||
node.structuredType = this.convertNameToEdmx(this.getNameObj(artifact).absolute); | ||
@@ -354,0 +364,0 @@ const kind = artifact.kind; |
{ | ||
"name": "@sap/ux-cds-compiler-facade", | ||
"version": "1.13.1", | ||
"version": "1.13.2", | ||
"description": "SAP Fiori tools - CDS compiler facade", | ||
@@ -37,6 +37,6 @@ "publisher": "SAPSE", | ||
"devDependencies": { | ||
"@sap-ux/cds-annotation-parser": "0.1.9", | ||
"@sap-ux/cds-annotation-parser": "0.1.11", | ||
"@sap/cds": "7.6.4", | ||
"@sap/ux-cds-compiler-types": "1.13.1", | ||
"@sap/ux-project-access": "1.13.1", | ||
"@sap/ux-cds-compiler-types": "1.13.2", | ||
"@sap/ux-project-access": "1.13.2", | ||
"madge": "4.0.2", | ||
@@ -43,0 +43,0 @@ "typescript": "5.2.2" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
343266
3746