File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
javascript/frameworks/cap/lib/advanced_security/javascript/frameworks/cap Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -165,8 +165,8 @@ class CdlService extends CdlElement {
165
165
CdlService ( ) { kind = CdlServiceKind ( this .getPropStringValue ( "kind" ) ) }
166
166
167
167
UserDefinedApplicationService getImplementation ( ) {
168
- this .getFile ( ) .getStem ( ) = result . getFile ( ) . getStem ( ) + ".cds" and
169
- this . getFile ( ) . getParentContainer ( ) = this .getFile ( ) .getParentContainer ( )
168
+ result .getFile ( ) .getRelativePath ( ) . regexpReplaceAll ( "\\.[^.]+$" , ".cds.json" ) =
169
+ this .getFile ( ) .getRelativePath ( )
170
170
}
171
171
172
172
/**
Original file line number Diff line number Diff line change @@ -442,13 +442,7 @@ abstract class UserDefinedApplicationService extends UserDefinedService {
442
442
/**
443
443
* Gets the CDS definition of this service.
444
444
*/
445
- CdlService getCdsDeclaration ( ) {
446
- exists ( CdsFile cdsFile |
447
- cdsFile .getStem ( ) = this .getFile ( ) .getStem ( ) + ".cds" and
448
- cdsFile .getParentContainer ( ) = this .getFile ( ) .getParentContainer ( ) and
449
- result .getFile ( ) = cdsFile
450
- )
451
- }
445
+ CdlService getCdsDeclaration ( ) { result .getImplementation ( ) = this }
452
446
453
447
/**
454
448
* Gets the name of this service.
You can’t perform that action at this time.
0 commit comments