@abaplint/core 2.105.4 → 2.105.6

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.
@@ -71,10 +71,7 @@ declare abstract class AbstractObject implements IObject {
71
71
  private files;
72
72
  private readonly name;
73
73
  abstract getType(): string;
74
- abstract getAllowedNaming(): {
75
- maxLength: number;
76
- allowNamespace: boolean;
77
- };
74
+ abstract getAllowedNaming(): IAllowedNaming;
78
75
  abstract getDescription(): string | undefined;
79
76
  constructor(name: string);
80
77
  getParsingIssues(): readonly Issue[];
@@ -531,16 +528,43 @@ declare class BSPApplication extends AbstractObject {
531
528
 
532
529
  export declare class BuiltIn {
533
530
  static readonly filename = "_builtin.prog.abap";
534
- static readonly methods: IBuiltinMethod[];
531
+ private static counter;
532
+ private static readonly getCache;
533
+ static readonly methods: {
534
+ [name: string]: IBuiltinMethod;
535
+ };
535
536
  private row;
536
537
  private buildDefinition;
537
538
  searchBuiltin(name: string | undefined): IMethodDefinition | undefined;
538
539
  isPredicate(name: string | undefined): boolean | undefined;
539
540
  getTypes(): TypedIdentifier[];
540
541
  get(extras: string[]): TypedIdentifier[];
542
+ private buildVariable;
541
543
  private buildSY;
542
544
  private buildConstant;
543
- private buildVariable;
545
+ }
546
+
547
+ declare class BuiltInMethod extends Identifier implements IMethodDefinition, IMethodParameters {
548
+ private readonly method;
549
+ private readonly row;
550
+ constructor(token: Token, filename: string, method: IBuiltinMethod, row: number);
551
+ getRequiredParameters(): readonly TypedIdentifier[];
552
+ getOptional(): readonly string[];
553
+ getAll(): readonly TypedIdentifier[];
554
+ getImporting(): readonly TypedIdentifier[];
555
+ getDefaultImporting(): string | undefined;
556
+ getExporting(): readonly TypedIdentifier[];
557
+ getRaising(): readonly string[];
558
+ getChanging(): readonly TypedIdentifier[];
559
+ getReturning(): TypedIdentifier | undefined;
560
+ getExceptions(): readonly string[];
561
+ getVisibility(): Visibility;
562
+ isRedefinition(): boolean;
563
+ isAbstract(): boolean;
564
+ isStatic(): boolean;
565
+ isEventHandler(): boolean;
566
+ getParameters(): IMethodParameters;
567
+ getParameterDefault(_parameter: string): undefined;
544
568
  }
545
569
 
546
570
  declare class BusinessAddInImplementation extends AbstractObject {
@@ -1362,12 +1386,10 @@ export declare class CurrentScope {
1362
1386
  findObjectDefinition(name: string | undefined): IClassDefinition | IInterfaceDefinition | undefined;
1363
1387
  isBadiDef(name: string): boolean;
1364
1388
  existsObject(name: string | undefined): {
1365
- found: boolean;
1366
- id?: Identifier;
1367
- type?: ReferenceType;
1389
+ id: Identifier | undefined;
1368
1390
  ooType?: IReferenceExtras["ooType"];
1369
1391
  RTTIName?: string;
1370
- };
1392
+ } | undefined;
1371
1393
  /** Lookup class in local and global scope */
1372
1394
  findClassDefinition(name: string | undefined): IClassDefinition | undefined;
1373
1395
  findTypePoolConstant(name: string | undefined): TypedIdentifier | undefined;
@@ -2867,7 +2889,7 @@ declare interface IBadiDefinition {
2867
2889
  }
2868
2890
 
2869
2891
  declare interface IBuiltinMethod {
2870
- name: string;
2892
+ counter: number;
2871
2893
  mandatory?: {
2872
2894
  [key: string]: AbstractType;
2873
2895
  };
@@ -2877,6 +2899,7 @@ declare interface IBuiltinMethod {
2877
2899
  version?: Version;
2878
2900
  predicate?: boolean;
2879
2901
  return: AbstractType;
2902
+ cache?: BuiltInMethod | undefined;
2880
2903
  }
2881
2904
 
2882
2905
  declare class ICFService extends AbstractObject {
@@ -3683,7 +3706,9 @@ declare interface IScopeData {
3683
3706
  cdefs: {
3684
3707
  [name: string]: IClassDefinition;
3685
3708
  };
3686
- idefs: IInterfaceDefinition[];
3709
+ idefs: {
3710
+ [name: string]: IInterfaceDefinition;
3711
+ };
3687
3712
  forms: IFormDefinition[];
3688
3713
  references: IReference[];
3689
3714
  sqlConversion: {
@@ -3730,7 +3755,6 @@ export declare interface ISpaghettiScopeNode {
3730
3755
  listClassDefinitions(): IClassDefinition[];
3731
3756
  listInterfaceDefinitions(): IInterfaceDefinition[];
3732
3757
  findFormDefinition(name: string): IFormDefinition | undefined;
3733
- listFormDefinitions(): IFormDefinition[];
3734
3758
  findInterfaceDefinition(name: string): IInterfaceDefinition | undefined;
3735
3759
  findType(name: string): TypedIdentifier | undefined;
3736
3760
  findVariable(name: string): TypedIdentifier | undefined;
@@ -4283,10 +4307,7 @@ declare class NamespaceSimpleName extends Expression {
4283
4307
 
4284
4308
  declare class NeptuneAPI extends AbstractObject {
4285
4309
  getType(): string;
4286
- getAllowedNaming(): {
4287
- maxLength: number;
4288
- allowNamespace: boolean;
4289
- };
4310
+ getAllowedNaming(): IAllowedNaming;
4290
4311
  getDescription(): string | undefined;
4291
4312
  }
4292
4313
 
@@ -5681,7 +5702,6 @@ export declare class SpaghettiScopeNode extends ScopeData implements ISpaghettiS
5681
5702
  listClassDefinitions(): IClassDefinition[];
5682
5703
  listInterfaceDefinitions(): IInterfaceDefinition[];
5683
5704
  findFormDefinition(name: string): IFormDefinition | undefined;
5684
- listFormDefinitions(): IFormDefinition[];
5685
5705
  findInterfaceDefinition(name: string): IInterfaceDefinition | undefined;
5686
5706
  findType(name: string): TypedIdentifier | undefined;
5687
5707
  findExtraLikeType(name: string): TypedIdentifier | undefined;
@@ -7000,7 +7020,7 @@ export declare enum Visibility {
7000
7020
 
7001
7021
  declare class VoidType extends AbstractType {
7002
7022
  private readonly voided;
7003
- constructor(voided: string | undefined, name?: string);
7023
+ constructor(voided: string | undefined, qualifiedName?: string);
7004
7024
  getVoided(): string | undefined;
7005
7025
  toABAP(): string;
7006
7026
  toText(): string;