Skip to content

Commit fcf35dc

Browse files
author
Max Schaefer
committed
JavaScript: Add configuration-file snippet to dbscheme.
1 parent 2e760bf commit fcf35dc

File tree

5 files changed

+2663
-2
lines changed

5 files changed

+2663
-2
lines changed

javascript/ql/src/semmlecode.javascript.dbscheme

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,8 @@ case @json_value.kind of
934934
| @cfg_node
935935
| @jsdoc | @jsdoc_type_expr | @jsdoc_tag
936936
| @yaml_locatable
937-
| @xmllocatable;
937+
| @xmllocatable
938+
| @configLocatable;
938939

939940
hasLocation (unique int locatable: @locatable ref,
940941
int ___location: @___location ref);
@@ -1109,4 +1110,29 @@ xmllocations(
11091110

11101111
isOptionalChaining(int id: @optionalchainable ref);
11111112

1112-
/* Last updated 2018/10/23. */
1113+
/*
1114+
* configuration files with key value pairs
1115+
*/
1116+
1117+
configs(
1118+
unique int id: @config
1119+
);
1120+
1121+
configNames(
1122+
unique int id: @configName,
1123+
int config: @config ref,
1124+
string name: string ref
1125+
);
1126+
1127+
configValues(
1128+
unique int id: @configValue,
1129+
int config: @config ref,
1130+
string value: string ref
1131+
);
1132+
1133+
configLocations(
1134+
int locatable: @configLocatable ref,
1135+
int ___location: @location_default ref
1136+
);
1137+
1138+
@configLocatable = @config | @configName | @configValue;

0 commit comments

Comments
 (0)