Files
codeql/misc/codegen/templates/ql_synth_constructor_stub.mustache
2023-06-07 09:12:39 +02:00

20 lines
604 B
Plaintext

// generated by {{generator}}, remove this comment if you wish to edit this file
private import {{import_prefix}}.Raw
{{#cls}}
{{#is_db}}
{{#has_subtracted_synth_types}}
private import {{import_prefix}}.PureSynthConstructors
{{/has_subtracted_synth_types}}
{{/is_db}}
predicate construct{{name}}({{#params}}{{^first}}, {{/first}}{{type}} {{param}}{{/params}}) {
{{#is_db}}
{{#subtracted_synth_types}}{{^first}} and {{/first}}not construct{{name}}(id){{/subtracted_synth_types}}
{{^subtracted_synth_types}}any(){{/subtracted_synth_types}}
{{/is_db}}
{{^is_db}}
none()
{{/is_db}}
}
{{/cls}}