diff --git a/.github/workflows/swift-qltest.yml b/.github/workflows/swift-qltest.yml index 6d284307d88..8f515471f82 100644 --- a/.github/workflows/swift-qltest.yml +++ b/.github/workflows/swift-qltest.yml @@ -12,6 +12,17 @@ defaults: working-directory: swift jobs: + codegen: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: ./.github/actions/fetch-codeql + - uses: bazelbuild/setup-bazelisk@v2 + - name: Check code generation + run: | + bazel run //swift/codegen + git add . + git diff --exit-code --stat HEAD qlformat: runs-on: ubuntu-latest steps: @@ -28,18 +39,7 @@ jobs: steps: - uses: actions/checkout@v2 - uses: ./.github/actions/fetch-codeql - - name: Install bazelisk - Linux - if: runner.os == 'Linux' - run: | - sudo apt-get update - sudo apt-get install -y wget - wget https://github.com/bazelbuild/bazelisk/releases/download/v1.11.0/bazelisk-linux-amd64 - mv bazelisk-linux-amd64 /usr/local/bin/bazel - chmod +x /usr/local/bin/bazel - - name: Install bazelisk - macOS - if: runner.os == 'MacOS' - run: | - brew install bazelisk + - uses: bazelbuild/setup-bazelisk@v2 - name: Build Swift extractor run: | bazel run //swift:create-extractor-pack @@ -48,4 +48,3 @@ jobs: codeql test run --threads=0 --ram 5000 --search-path "${{ github.workspace }}/swift/extractor-pack" --check-databases --check-unused-labels --check-repeated-labels --check-redefined-labels --check-use-before-definition ql/test env: GITHUB_TOKEN: ${{ github.token }} - diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4240b18e2f6..d90a7982a57 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - id: swift-codegen name: Run Swift checked in code generation - files: ^swift/(codegen/|.*/generated/|ql/lib/swift\.dbscheme$) + files: ^swift/(codegen/|.*/generated/|ql/lib/(swift\.dbscheme$|codeql/swift/elements)) language: system entry: bazel run //swift/codegen pass_filenames: false diff --git a/swift/codegen/codegen.py b/swift/codegen/codegen.py index 02c745fa7f2..089b7e35db9 100755 --- a/swift/codegen/codegen.py +++ b/swift/codegen/codegen.py @@ -3,6 +3,7 @@ from lib import generator import dbschemegen +import qlgen if __name__ == "__main__": - generator.run(dbschemegen.generate) + generator.run(dbschemegen.generate, qlgen.generate) diff --git a/swift/codegen/lib/generator.py b/swift/codegen/lib/generator.py index f03edbde5d9..7b133c97697 100644 --- a/swift/codegen/lib/generator.py +++ b/swift/codegen/lib/generator.py @@ -23,7 +23,5 @@ def run(*generators, tags=None): `generators` should be callables taking as input an option namespace and a `render.Renderer` instance """ opts = _parse(tags) - renderer = render.Renderer(dryrun=opts.check) for g in generators: - g(opts, renderer) - sys.exit(1 if opts.check and renderer.done_something else 0) + g(opts, render.Renderer()) diff --git a/swift/codegen/lib/options.py b/swift/codegen/lib/options.py index ad3f92bbb5e..373564b6548 100644 --- a/swift/codegen/lib/options.py +++ b/swift/codegen/lib/options.py @@ -9,10 +9,12 @@ from . import paths def _init_options(): - Option("--check", "-c", action="store_true") Option("--verbose", "-v", action="store_true") Option("--schema", tags=["schema"], type=pathlib.Path, default=paths.swift_dir / "codegen/schema.yml") Option("--dbscheme", tags=["dbscheme"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/swift.dbscheme") + Option("--ql-output", tags=["ql"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/codeql/swift/generated") + Option("--ql-stub-output", tags=["ql"], type=pathlib.Path, default=paths.swift_dir / "ql/lib/codeql/swift/elements") + Option("--codeql-binary", tags=["ql"], default="codeql") _options = collections.defaultdict(list) diff --git a/swift/codegen/lib/render.py b/swift/codegen/lib/render.py index be47d1297cb..1129f42b85a 100644 --- a/swift/codegen/lib/render.py +++ b/swift/codegen/lib/render.py @@ -5,7 +5,6 @@ https://mustache.github.io/ """ -import hashlib import logging import pathlib @@ -16,29 +15,13 @@ from . import paths log = logging.getLogger(__name__) -def _md5(data): - return hashlib.md5(data).digest() - - class Renderer: """ Template renderer using mustache templates in the `templates` directory """ - def __init__(self, dryrun=False): - """ Construct the renderer, which will not write anything if `dryrun` is `True` """ + def __init__(self): self.r = pystache.Renderer(search_dirs=str(paths.lib_dir / "templates"), escape=lambda u: u) self.generator = paths.exe_file.relative_to(paths.swift_dir) - self.dryrun = dryrun self.written = set() - self.skipped = set() - self.erased = set() - - @property - def done_something(self): - return bool(self.written or self.erased) - - @property - def rendered(self): - return self.written | self.skipped def render(self, data, output: pathlib.Path): """ Render `data` to `output`. @@ -50,27 +33,14 @@ class Renderer: mnemonic = type(data).__name__ output.parent.mkdir(parents=True, exist_ok=True) data = self.r.render_name(data.template, data, generator=self.generator) - if output.is_file(): - with open(output, "rb") as file: - if _md5(data.encode()) == _md5(file.read()): - log.debug(f"skipped {output.name}") - self.skipped.add(output) - return - if self.dryrun: - log.error(f"would have generated {mnemonic} {output.name}") - else: - with open(output, "w") as out: - out.write(data) - log.info(f"generated {mnemonic} {output.name}") + with open(output, "w") as out: + out.write(data) + log.debug(f"generated {mnemonic} {output.name}") self.written.add(output) def cleanup(self, existing): """ Remove files in `existing` for which no `render` has been called """ - for f in existing - self.written - self.skipped: + for f in existing - self.written: if f.is_file(): - if self.dryrun: - log.error(f"would have removed {f.name}") - else: - f.unlink() - log.info(f"removed {f.name}") - self.erased.add(f) + f.unlink() + log.info(f"removed {f.name}") diff --git a/swift/codegen/lib/templates/ql_class.mustache b/swift/codegen/lib/templates/ql_class.mustache new file mode 100644 index 00000000000..f04914bd39d --- /dev/null +++ b/swift/codegen/lib/templates/ql_class.mustache @@ -0,0 +1,47 @@ +// generated by {{generator}} +{{#imports}} +import {{.}} +{{/imports}} + +class {{name}}Base extends {{db_id}}{{#bases}}, {{.}}{{/bases}} { + {{#root}} + string toString() { none() } // overridden by subclasses + + {{name}}Base getResolveStep() { none() } // overridden by subclasses + + {{name}}Base resolve() { + not exists(getResolveStep()) and result = this + or + result = getResolveStep().resolve() + } + {{/root}} + {{#final}} + override string toString() { result = "{{name}}" } + {{/final}} + {{#properties}} + + {{#type_is_class}} + {{type}} get{{singular}}({{#params}}{{^first}}, {{/first}}{{type}} {{param}}{{/params}}) { + exists({{type}} {{local_var}} | + {{tablename}}({{#tableparams}}{{^first}}, {{/first}}{{param}}{{/tableparams}}) + and + result = {{local_var}}.resolve()) + } + {{/type_is_class}} + {{^type_is_class}} + {{type}} get{{singular}}({{#params}}{{^first}}, {{/first}}{{type}} {{param}}{{/params}}) { + {{tablename}}({{#tableparams}}{{^first}}, {{/first}}{{param}}{{/tableparams}}) + } + {{/type_is_class}} + {{#indefinite_article}} + + {{type}} get{{.}}{{singular}}() { + result = get{{singular}}({{#params}}{{^first}}, {{/first}}_{{/params}}) + } + + int getNumberOf{{plural}}() { + result = count(get{{.}}{{singular}}()) + } + {{/indefinite_article}} + {{/properties}} +} diff --git a/swift/codegen/lib/templates/ql_imports.mustache b/swift/codegen/lib/templates/ql_imports.mustache new file mode 100644 index 00000000000..04e8daf2d52 --- /dev/null +++ b/swift/codegen/lib/templates/ql_imports.mustache @@ -0,0 +1,4 @@ +// generated by {{generator}} +{{#imports}} +import {{.}} +{{/imports}} diff --git a/swift/codegen/lib/templates/ql_stub.mustache b/swift/codegen/lib/templates/ql_stub.mustache new file mode 100644 index 00000000000..adc16b362c9 --- /dev/null +++ b/swift/codegen/lib/templates/ql_stub.mustache @@ -0,0 +1,4 @@ +// generated by {{generator}}, remove this comment if you wish to edit this file +private import {{base_import}} + +class {{name}} extends {{name}}Base { } diff --git a/swift/codegen/prefix.dbscheme b/swift/codegen/prefix.dbscheme index 6e3ac2f3bdb..c8860a3cee3 100644 --- a/swift/codegen/prefix.dbscheme +++ b/swift/codegen/prefix.dbscheme @@ -7,4 +7,4 @@ sourceLocationPrefix( answer_to_life_the_universe_and_everything( int answer: int ref -) +); diff --git a/swift/codegen/qlgen.py b/swift/codegen/qlgen.py new file mode 100755 index 00000000000..0ea6d60efa3 --- /dev/null +++ b/swift/codegen/qlgen.py @@ -0,0 +1,202 @@ +#!/usr/bin/env python3 + +import logging +import pathlib +import subprocess +from dataclasses import dataclass, field +from typing import List, ClassVar + +import inflection + +from lib import schema, paths, generator + +log = logging.getLogger(__name__) + + +@dataclass +class QlParam: + param: str + type: str = None + first: bool = False + + +@dataclass +class QlProperty: + singular: str + type: str + tablename: str + tableparams: List[QlParam] + plural: str = None + params: List[QlParam] = field(default_factory=list) + first: bool = False + local_var: str = "x" + + def __post_init__(self): + if self.params: + self.params[0].first = True + while self.local_var in (p.param for p in self.params): + self.local_var += "_" + assert self.tableparams + if self.type_is_class: + self.tableparams = [x if x != "result" else self.local_var for x in self.tableparams] + self.tableparams = [QlParam(x) for x in self.tableparams] + self.tableparams[0].first = True + + @property + def indefinite_article(self): + if self.plural: + return "An" if self.singular[0] in "AEIO" else "A" + + @property + def type_is_class(self): + return self.type[0].isupper() + + +@dataclass +class QlClass: + template: ClassVar = 'ql_class' + + name: str + bases: List[str] + final: bool + properties: List[QlProperty] + dir: pathlib.Path + imports: List[str] = field(default_factory=list) + + def __post_init__(self): + self.bases = sorted(self.bases) + if self.properties: + self.properties[0].first = True + + @property + def db_id(self): + return "@" + inflection.underscore(self.name) + + @property + def root(self): + return not self.bases + + @property + def path(self): + return self.dir / self.name + + +@dataclass +class QlStub: + template: ClassVar = 'ql_stub' + + name: str + base_import: str + + +@dataclass +class QlImportList: + template: ClassVar = 'ql_imports' + + imports: List[str] = field(default_factory=list) + + +def get_ql_property(cls: schema.Class, prop: schema.Property): + if prop.is_single: + return QlProperty( + singular=inflection.camelize(prop.name), + type=prop.type, + tablename=inflection.tableize(cls.name), + tableparams=["this"] + ["result" if p is prop else "_" for p in cls.properties if p.is_single], + ) + elif prop.is_optional: + return QlProperty( + singular=inflection.camelize(prop.name), + type=prop.type, + tablename=inflection.tableize(f"{cls.name}_{prop.name}"), + tableparams=["this", "result"], + ) + elif prop.is_repeated: + return QlProperty( + singular=inflection.singularize(inflection.camelize(prop.name)), + plural=inflection.pluralize(inflection.camelize(prop.name)), + type=prop.type, + tablename=inflection.tableize(f"{cls.name}_{prop.name}"), + tableparams=["this", "index", "result"], + params=[QlParam("index", type="int")], + ) + + +def get_ql_class(cls: schema.Class): + return QlClass( + name=cls.name, + bases=cls.bases, + final=not cls.derived, + properties=[get_ql_property(cls, p) for p in cls.properties], + dir=cls.dir, + ) + + +def get_import(file): + stem = file.relative_to(paths.swift_dir / "ql/lib").with_suffix("") + return str(stem).replace("/", ".") + + +def get_types_used_by(cls: QlClass): + for b in cls.bases: + yield b + for p in cls.properties: + yield p.type + for param in p.params: + yield param.type + + +def get_classes_used_by(cls: QlClass): + return sorted(set(t for t in get_types_used_by(cls) if t[0].isupper())) + + +def is_generated(file): + with open(file) as contents: + return next(contents).startswith("// generated") + + +def format(codeql, files): + format_cmd = [codeql, "query", "format", "--in-place", "--"] + format_cmd.extend(str(f) for f in files) + res = subprocess.run(format_cmd, check=True, stderr=subprocess.PIPE, text=True) + for line in res.stderr.splitlines(): + log.debug(line.strip()) + + +def generate(opts, renderer): + input = opts.schema.resolve() + out = opts.ql_output.resolve() + stub_out = opts.ql_stub_output.resolve() + existing = {q for q in out.rglob("*.qll")} + existing |= {q for q in stub_out.rglob("*.qll") if is_generated(q)} + + with open(input) as src: + data = schema.load(src) + + classes = [get_ql_class(cls) for cls in data.classes.values()] + imports = {} + + for c in classes: + imports[c.name] = get_import(stub_out / c.path) + + for c in classes: + assert not c.final or c.bases, c.name + qll = (out / c.path).with_suffix(".qll") + c.imports = [imports[t] for t in get_classes_used_by(c)] + renderer.render(c, qll) + stub_file = (stub_out / c.path).with_suffix(".qll") + if not stub_file.is_file() or is_generated(stub_file): + stub = QlStub(name=c.name, base_import=get_import(qll)) + renderer.render(stub, stub_file) + + # for example path/to/syntax/generated -> path/to/syntax.qll + include_file = stub_out.with_suffix(".qll") + all_imports = QlImportList(v for _, v in sorted(imports.items())) + renderer.render(all_imports, include_file) + + renderer.cleanup(existing) + format(opts.codeql_binary, renderer.written) + + +if __name__ == "__main__": + generator.run(generate, tags=["schema", "ql"]) diff --git a/swift/ql/lib/codeql/swift/elements.qll b/swift/ql/lib/codeql/swift/elements.qll new file mode 100644 index 00000000000..ab923309b42 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements.qll @@ -0,0 +1,283 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AbstractClosureExpr +import codeql.swift.elements.decl.AbstractFunctionDecl +import codeql.swift.elements.decl.AbstractStorageDecl +import codeql.swift.elements.decl.AbstractTypeParamDecl +import codeql.swift.elements.decl.AccessorDecl +import codeql.swift.elements.type.AnyBuiltinIntegerType +import codeql.swift.elements.type.AnyFunctionType +import codeql.swift.elements.type.AnyGenericType +import codeql.swift.elements.expr.AnyHashableErasureExpr +import codeql.swift.elements.type.AnyMetatypeType +import codeql.swift.elements.pattern.AnyPattern +import codeql.swift.elements.expr.AnyTryExpr +import codeql.swift.elements.expr.AppliedPropertyWrapperExpr +import codeql.swift.elements.expr.ApplyExpr +import codeql.swift.elements.expr.ArchetypeToSuperExpr +import codeql.swift.elements.type.ArchetypeType +import codeql.swift.elements.expr.Argument +import codeql.swift.elements.expr.ArrayExpr +import codeql.swift.elements.type.ArraySliceType +import codeql.swift.elements.expr.ArrayToPointerExpr +import codeql.swift.elements.expr.ArrowExpr +import codeql.swift.elements.expr.AssignExpr +import codeql.swift.elements.decl.AssociatedTypeDecl +import codeql.swift.elements.AstNode +import codeql.swift.elements.expr.AutoClosureExpr +import codeql.swift.elements.expr.AwaitExpr +import codeql.swift.elements.expr.BinaryExpr +import codeql.swift.elements.expr.BindOptionalExpr +import codeql.swift.elements.pattern.BindingPattern +import codeql.swift.elements.pattern.BoolPattern +import codeql.swift.elements.expr.BooleanLiteralExpr +import codeql.swift.elements.type.BoundGenericClassType +import codeql.swift.elements.type.BoundGenericEnumType +import codeql.swift.elements.type.BoundGenericStructType +import codeql.swift.elements.type.BoundGenericType +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.stmt.BreakStmt +import codeql.swift.elements.expr.BridgeFromObjCExpr +import codeql.swift.elements.expr.BridgeToObjCExpr +import codeql.swift.elements.type.BuiltinBridgeObjectType +import codeql.swift.elements.type.BuiltinDefaultActorStorageType +import codeql.swift.elements.type.BuiltinExecutorType +import codeql.swift.elements.type.BuiltinFloatType +import codeql.swift.elements.type.BuiltinIntegerLiteralType +import codeql.swift.elements.type.BuiltinIntegerType +import codeql.swift.elements.type.BuiltinJobType +import codeql.swift.elements.expr.BuiltinLiteralExpr +import codeql.swift.elements.type.BuiltinNativeObjectType +import codeql.swift.elements.type.BuiltinRawPointerType +import codeql.swift.elements.type.BuiltinRawUnsafeContinuationType +import codeql.swift.elements.type.BuiltinType +import codeql.swift.elements.type.BuiltinUnsafeValueBufferType +import codeql.swift.elements.type.BuiltinVectorType +import codeql.swift.elements.expr.CallExpr +import codeql.swift.elements.expr.CaptureListExpr +import codeql.swift.elements.stmt.CaseLabelItem +import codeql.swift.elements.stmt.CaseStmt +import codeql.swift.elements.expr.CheckedCastExpr +import codeql.swift.elements.decl.ClassDecl +import codeql.swift.elements.expr.ClassMetatypeToObjectExpr +import codeql.swift.elements.type.ClassType +import codeql.swift.elements.expr.ClosureExpr +import codeql.swift.elements.expr.CodeCompletionExpr +import codeql.swift.elements.expr.CoerceExpr +import codeql.swift.elements.expr.CollectionExpr +import codeql.swift.elements.expr.CollectionUpcastConversionExpr +import codeql.swift.elements.decl.ConcreteFuncDecl +import codeql.swift.elements.decl.ConcreteVarDecl +import codeql.swift.elements.stmt.ConditionElement +import codeql.swift.elements.expr.ConditionalBridgeFromObjCExpr +import codeql.swift.elements.expr.ConditionalCheckedCastExpr +import codeql.swift.elements.decl.ConstructorDecl +import codeql.swift.elements.expr.ConstructorRefCallExpr +import codeql.swift.elements.stmt.ContinueStmt +import codeql.swift.elements.expr.CovariantFunctionConversionExpr +import codeql.swift.elements.expr.CovariantReturnConversionExpr +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.expr.DeclRefExpr +import codeql.swift.elements.expr.DefaultArgumentExpr +import codeql.swift.elements.stmt.DeferStmt +import codeql.swift.elements.type.DependentMemberType +import codeql.swift.elements.expr.DerivedToBaseExpr +import codeql.swift.elements.decl.DestructorDecl +import codeql.swift.elements.expr.DestructureTupleExpr +import codeql.swift.elements.expr.DictionaryExpr +import codeql.swift.elements.type.DictionaryType +import codeql.swift.elements.expr.DifferentiableFunctionExpr +import codeql.swift.elements.expr.DifferentiableFunctionExtractOriginalExpr +import codeql.swift.elements.expr.DiscardAssignmentExpr +import codeql.swift.elements.stmt.DoCatchStmt +import codeql.swift.elements.stmt.DoStmt +import codeql.swift.elements.expr.DotSelfExpr +import codeql.swift.elements.expr.DotSyntaxBaseIgnoredExpr +import codeql.swift.elements.expr.DotSyntaxCallExpr +import codeql.swift.elements.expr.DynamicLookupExpr +import codeql.swift.elements.expr.DynamicMemberRefExpr +import codeql.swift.elements.type.DynamicSelfType +import codeql.swift.elements.expr.DynamicSubscriptExpr +import codeql.swift.elements.expr.DynamicTypeExpr +import codeql.swift.elements.expr.EditorPlaceholderExpr +import codeql.swift.elements.Element +import codeql.swift.elements.decl.EnumCaseDecl +import codeql.swift.elements.decl.EnumDecl +import codeql.swift.elements.decl.EnumElementDecl +import codeql.swift.elements.pattern.EnumElementPattern +import codeql.swift.elements.expr.EnumIsCaseExpr +import codeql.swift.elements.type.EnumType +import codeql.swift.elements.expr.ErasureExpr +import codeql.swift.elements.expr.ErrorExpr +import codeql.swift.elements.type.ErrorType +import codeql.swift.elements.expr.ExistentialMetatypeToObjectExpr +import codeql.swift.elements.type.ExistentialMetatypeType +import codeql.swift.elements.type.ExistentialType +import codeql.swift.elements.expr.ExplicitCastExpr +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.pattern.ExprPattern +import codeql.swift.elements.decl.ExtensionDecl +import codeql.swift.elements.stmt.FailStmt +import codeql.swift.elements.stmt.FallthroughStmt +import codeql.swift.elements.File +import codeql.swift.elements.expr.FloatLiteralExpr +import codeql.swift.elements.stmt.ForEachStmt +import codeql.swift.elements.expr.ForceTryExpr +import codeql.swift.elements.expr.ForceValueExpr +import codeql.swift.elements.expr.ForcedCheckedCastExpr +import codeql.swift.elements.expr.ForeignObjectConversionExpr +import codeql.swift.elements.decl.FuncDecl +import codeql.swift.elements.expr.FunctionConversionExpr +import codeql.swift.elements.type.FunctionType +import codeql.swift.elements.decl.GenericContext +import codeql.swift.elements.type.GenericFunctionType +import codeql.swift.elements.decl.GenericTypeDecl +import codeql.swift.elements.decl.GenericTypeParamDecl +import codeql.swift.elements.type.GenericTypeParamType +import codeql.swift.elements.stmt.GuardStmt +import codeql.swift.elements.expr.IdentityExpr +import codeql.swift.elements.decl.IfConfigDecl +import codeql.swift.elements.expr.IfExpr +import codeql.swift.elements.stmt.IfStmt +import codeql.swift.elements.expr.ImplicitConversionExpr +import codeql.swift.elements.decl.ImportDecl +import codeql.swift.elements.expr.InOutExpr +import codeql.swift.elements.expr.InOutToPointerExpr +import codeql.swift.elements.type.InOutType +import codeql.swift.elements.decl.InfixOperatorDecl +import codeql.swift.elements.expr.InjectIntoOptionalExpr +import codeql.swift.elements.expr.IntegerLiteralExpr +import codeql.swift.elements.expr.InterpolatedStringLiteralExpr +import codeql.swift.elements.expr.IsExpr +import codeql.swift.elements.pattern.IsPattern +import codeql.swift.elements.decl.IterableDeclContext +import codeql.swift.elements.expr.KeyPathApplicationExpr +import codeql.swift.elements.expr.KeyPathDotExpr +import codeql.swift.elements.expr.KeyPathExpr +import codeql.swift.elements.type.LValueType +import codeql.swift.elements.stmt.LabeledConditionalStmt +import codeql.swift.elements.stmt.LabeledStmt +import codeql.swift.elements.expr.LazyInitializerExpr +import codeql.swift.elements.expr.LinearFunctionExpr +import codeql.swift.elements.expr.LinearFunctionExtractOriginalExpr +import codeql.swift.elements.expr.LinearToDifferentiableFunctionExpr +import codeql.swift.elements.expr.LiteralExpr +import codeql.swift.elements.expr.LoadExpr +import codeql.swift.elements.Locatable +import codeql.swift.elements.Location +import codeql.swift.elements.expr.LookupExpr +import codeql.swift.elements.expr.MagicIdentifierLiteralExpr +import codeql.swift.elements.expr.MakeTemporarilyEscapableExpr +import codeql.swift.elements.expr.MemberRefExpr +import codeql.swift.elements.expr.MetatypeConversionExpr +import codeql.swift.elements.type.MetatypeType +import codeql.swift.elements.decl.MissingMemberDecl +import codeql.swift.elements.decl.ModuleDecl +import codeql.swift.elements.type.ModuleType +import codeql.swift.elements.pattern.NamedPattern +import codeql.swift.elements.type.NestedArchetypeType +import codeql.swift.elements.expr.NilLiteralExpr +import codeql.swift.elements.type.NominalOrBoundGenericNominalType +import codeql.swift.elements.type.NominalType +import codeql.swift.elements.decl.NominalTypeDecl +import codeql.swift.elements.expr.NumberLiteralExpr +import codeql.swift.elements.expr.ObjCSelectorExpr +import codeql.swift.elements.expr.ObjectLiteralExpr +import codeql.swift.elements.expr.OneWayExpr +import codeql.swift.elements.type.OpaqueTypeArchetypeType +import codeql.swift.elements.decl.OpaqueTypeDecl +import codeql.swift.elements.expr.OpaqueValueExpr +import codeql.swift.elements.expr.OpenExistentialExpr +import codeql.swift.elements.type.OpenedArchetypeType +import codeql.swift.elements.decl.OperatorDecl +import codeql.swift.elements.expr.OptionalEvaluationExpr +import codeql.swift.elements.pattern.OptionalSomePattern +import codeql.swift.elements.expr.OptionalTryExpr +import codeql.swift.elements.type.OptionalType +import codeql.swift.elements.expr.OtherConstructorDeclRefExpr +import codeql.swift.elements.expr.OverloadSetRefExpr +import codeql.swift.elements.expr.OverloadedDeclRefExpr +import codeql.swift.elements.decl.ParamDecl +import codeql.swift.elements.expr.ParenExpr +import codeql.swift.elements.pattern.ParenPattern +import codeql.swift.elements.type.ParenType +import codeql.swift.elements.pattern.Pattern +import codeql.swift.elements.decl.PatternBindingDecl +import codeql.swift.elements.type.PlaceholderType +import codeql.swift.elements.expr.PointerToPointerExpr +import codeql.swift.elements.decl.PostfixOperatorDecl +import codeql.swift.elements.expr.PostfixUnaryExpr +import codeql.swift.elements.stmt.PoundAssertStmt +import codeql.swift.elements.decl.PoundDiagnosticDecl +import codeql.swift.elements.decl.PrecedenceGroupDecl +import codeql.swift.elements.decl.PrefixOperatorDecl +import codeql.swift.elements.expr.PrefixUnaryExpr +import codeql.swift.elements.type.PrimaryArchetypeType +import codeql.swift.elements.expr.PropertyWrapperValuePlaceholderExpr +import codeql.swift.elements.type.ProtocolCompositionType +import codeql.swift.elements.decl.ProtocolDecl +import codeql.swift.elements.expr.ProtocolMetatypeToObjectExpr +import codeql.swift.elements.type.ProtocolType +import codeql.swift.elements.expr.RebindSelfInConstructorExpr +import codeql.swift.elements.type.ReferenceStorageType +import codeql.swift.elements.expr.RegexLiteralExpr +import codeql.swift.elements.stmt.RepeatWhileStmt +import codeql.swift.elements.stmt.ReturnStmt +import codeql.swift.elements.expr.SelfApplyExpr +import codeql.swift.elements.type.SequenceArchetypeType +import codeql.swift.elements.expr.SequenceExpr +import codeql.swift.elements.type.SilBlockStorageType +import codeql.swift.elements.type.SilBoxType +import codeql.swift.elements.type.SilFunctionType +import codeql.swift.elements.type.SilTokenType +import codeql.swift.elements.stmt.Stmt +import codeql.swift.elements.stmt.StmtCondition +import codeql.swift.elements.expr.StringLiteralExpr +import codeql.swift.elements.expr.StringToPointerExpr +import codeql.swift.elements.decl.StructDecl +import codeql.swift.elements.type.StructType +import codeql.swift.elements.decl.SubscriptDecl +import codeql.swift.elements.expr.SubscriptExpr +import codeql.swift.elements.type.SubstitutableType +import codeql.swift.elements.type.SugarType +import codeql.swift.elements.expr.SuperRefExpr +import codeql.swift.elements.stmt.SwitchStmt +import codeql.swift.elements.type.SyntaxSugarType +import codeql.swift.elements.expr.TapExpr +import codeql.swift.elements.stmt.ThrowStmt +import codeql.swift.elements.decl.TopLevelCodeDecl +import codeql.swift.elements.expr.TryExpr +import codeql.swift.elements.expr.TupleElementExpr +import codeql.swift.elements.expr.TupleExpr +import codeql.swift.elements.pattern.TuplePattern +import codeql.swift.elements.type.TupleType +import codeql.swift.elements.type.Type +import codeql.swift.elements.decl.TypeAliasDecl +import codeql.swift.elements.type.TypeAliasType +import codeql.swift.elements.decl.TypeDecl +import codeql.swift.elements.expr.TypeExpr +import codeql.swift.elements.typerepr.TypeRepr +import codeql.swift.elements.type.TypeVariableType +import codeql.swift.elements.pattern.TypedPattern +import codeql.swift.elements.type.UnarySyntaxSugarType +import codeql.swift.elements.type.UnboundGenericType +import codeql.swift.elements.expr.UnderlyingToOpaqueExpr +import codeql.swift.elements.expr.UnevaluatedInstanceExpr +import codeql.swift.elements.UnknownAstNode +import codeql.swift.elements.type.UnknownType +import codeql.swift.elements.type.UnmanagedStorageType +import codeql.swift.elements.type.UnownedStorageType +import codeql.swift.elements.expr.UnresolvedDeclRefExpr +import codeql.swift.elements.expr.UnresolvedDotExpr +import codeql.swift.elements.expr.UnresolvedMemberChainResultExpr +import codeql.swift.elements.expr.UnresolvedMemberExpr +import codeql.swift.elements.expr.UnresolvedPatternExpr +import codeql.swift.elements.expr.UnresolvedSpecializeExpr +import codeql.swift.elements.type.UnresolvedType +import codeql.swift.elements.expr.UnresolvedTypeConversionExpr +import codeql.swift.elements.decl.ValueDecl +import codeql.swift.elements.decl.VarDecl +import codeql.swift.elements.expr.VarargExpansionExpr +import codeql.swift.elements.type.VariadicSequenceType +import codeql.swift.elements.type.WeakStorageType +import codeql.swift.elements.stmt.WhileStmt +import codeql.swift.elements.stmt.YieldStmt diff --git a/swift/ql/lib/codeql/swift/elements/AstNode.qll b/swift/ql/lib/codeql/swift/elements/AstNode.qll new file mode 100644 index 00000000000..8c6007436e9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/AstNode.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.AstNode + +class AstNode extends AstNodeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/Element.qll b/swift/ql/lib/codeql/swift/elements/Element.qll new file mode 100644 index 00000000000..34350140805 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/Element.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.Element + +class Element extends ElementBase { } diff --git a/swift/ql/lib/codeql/swift/elements/File.qll b/swift/ql/lib/codeql/swift/elements/File.qll new file mode 100644 index 00000000000..88712a16522 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/File.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.File + +class File extends FileBase { } diff --git a/swift/ql/lib/codeql/swift/elements/Locatable.qll b/swift/ql/lib/codeql/swift/elements/Locatable.qll new file mode 100644 index 00000000000..1a91eaf8959 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/Locatable.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.Locatable + +class Locatable extends LocatableBase { } diff --git a/swift/ql/lib/codeql/swift/elements/Location.qll b/swift/ql/lib/codeql/swift/elements/Location.qll new file mode 100644 index 00000000000..00537c94872 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/Location.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.Location + +class Location extends LocationBase { } diff --git a/swift/ql/lib/codeql/swift/elements/UnknownAstNode.qll b/swift/ql/lib/codeql/swift/elements/UnknownAstNode.qll new file mode 100644 index 00000000000..950390f022d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/UnknownAstNode.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.UnknownAstNode + +class UnknownAstNode extends UnknownAstNodeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/AbstractFunctionDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/AbstractFunctionDecl.qll new file mode 100644 index 00000000000..2e7aac740b4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/AbstractFunctionDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.AbstractFunctionDecl + +class AbstractFunctionDecl extends AbstractFunctionDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/AbstractStorageDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/AbstractStorageDecl.qll new file mode 100644 index 00000000000..fe8b86cfffe --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/AbstractStorageDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.AbstractStorageDecl + +class AbstractStorageDecl extends AbstractStorageDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/AbstractTypeParamDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/AbstractTypeParamDecl.qll new file mode 100644 index 00000000000..3322e13eac5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/AbstractTypeParamDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.AbstractTypeParamDecl + +class AbstractTypeParamDecl extends AbstractTypeParamDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/AccessorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/AccessorDecl.qll new file mode 100644 index 00000000000..1d885e0c4c3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/AccessorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.AccessorDecl + +class AccessorDecl extends AccessorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/AssociatedTypeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/AssociatedTypeDecl.qll new file mode 100644 index 00000000000..a41344f4976 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/AssociatedTypeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.AssociatedTypeDecl + +class AssociatedTypeDecl extends AssociatedTypeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ClassDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ClassDecl.qll new file mode 100644 index 00000000000..b33658a3bdf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ClassDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ClassDecl + +class ClassDecl extends ClassDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ConcreteFuncDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ConcreteFuncDecl.qll new file mode 100644 index 00000000000..e0931ab8d0c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ConcreteFuncDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ConcreteFuncDecl + +class ConcreteFuncDecl extends ConcreteFuncDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ConcreteVarDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ConcreteVarDecl.qll new file mode 100644 index 00000000000..dee1770e906 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ConcreteVarDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ConcreteVarDecl + +class ConcreteVarDecl extends ConcreteVarDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll new file mode 100644 index 00000000000..375eff6acc3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ConstructorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ConstructorDecl + +class ConstructorDecl extends ConstructorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/Decl.qll b/swift/ql/lib/codeql/swift/elements/decl/Decl.qll new file mode 100644 index 00000000000..44d3571ad8f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/Decl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.Decl + +class Decl extends DeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll new file mode 100644 index 00000000000..8cc68eaf7c8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/DestructorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.DestructorDecl + +class DestructorDecl extends DestructorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/EnumCaseDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/EnumCaseDecl.qll new file mode 100644 index 00000000000..8af1fbe691c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/EnumCaseDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.EnumCaseDecl + +class EnumCaseDecl extends EnumCaseDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/EnumDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/EnumDecl.qll new file mode 100644 index 00000000000..0c4ec1ca849 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/EnumDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.EnumDecl + +class EnumDecl extends EnumDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/EnumElementDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/EnumElementDecl.qll new file mode 100644 index 00000000000..e0322c530a4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/EnumElementDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.EnumElementDecl + +class EnumElementDecl extends EnumElementDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ExtensionDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ExtensionDecl.qll new file mode 100644 index 00000000000..5f850f6a874 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ExtensionDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ExtensionDecl + +class ExtensionDecl extends ExtensionDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/FuncDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/FuncDecl.qll new file mode 100644 index 00000000000..0e4907105fd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/FuncDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.FuncDecl + +class FuncDecl extends FuncDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/GenericContext.qll b/swift/ql/lib/codeql/swift/elements/decl/GenericContext.qll new file mode 100644 index 00000000000..2d0e58efdac --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/GenericContext.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.GenericContext + +class GenericContext extends GenericContextBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/GenericTypeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/GenericTypeDecl.qll new file mode 100644 index 00000000000..803f94da007 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/GenericTypeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.GenericTypeDecl + +class GenericTypeDecl extends GenericTypeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/GenericTypeParamDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/GenericTypeParamDecl.qll new file mode 100644 index 00000000000..3746c20dc2d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/GenericTypeParamDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.GenericTypeParamDecl + +class GenericTypeParamDecl extends GenericTypeParamDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/IfConfigDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/IfConfigDecl.qll new file mode 100644 index 00000000000..d23143374e9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/IfConfigDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.IfConfigDecl + +class IfConfigDecl extends IfConfigDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ImportDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ImportDecl.qll new file mode 100644 index 00000000000..6fca161a726 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ImportDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ImportDecl + +class ImportDecl extends ImportDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/InfixOperatorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/InfixOperatorDecl.qll new file mode 100644 index 00000000000..5bbf9052ada --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/InfixOperatorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.InfixOperatorDecl + +class InfixOperatorDecl extends InfixOperatorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/IterableDeclContext.qll b/swift/ql/lib/codeql/swift/elements/decl/IterableDeclContext.qll new file mode 100644 index 00000000000..9b5a843933b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/IterableDeclContext.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.IterableDeclContext + +class IterableDeclContext extends IterableDeclContextBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/MissingMemberDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/MissingMemberDecl.qll new file mode 100644 index 00000000000..438469db09a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/MissingMemberDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.MissingMemberDecl + +class MissingMemberDecl extends MissingMemberDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ModuleDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ModuleDecl.qll new file mode 100644 index 00000000000..de44db5c958 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ModuleDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ModuleDecl + +class ModuleDecl extends ModuleDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/NominalTypeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/NominalTypeDecl.qll new file mode 100644 index 00000000000..c2d15066455 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/NominalTypeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.NominalTypeDecl + +class NominalTypeDecl extends NominalTypeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/OpaqueTypeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/OpaqueTypeDecl.qll new file mode 100644 index 00000000000..32fd223f247 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/OpaqueTypeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.OpaqueTypeDecl + +class OpaqueTypeDecl extends OpaqueTypeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/OperatorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/OperatorDecl.qll new file mode 100644 index 00000000000..677ebf6b41e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/OperatorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.OperatorDecl + +class OperatorDecl extends OperatorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ParamDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ParamDecl.qll new file mode 100644 index 00000000000..8dab284f637 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ParamDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ParamDecl + +class ParamDecl extends ParamDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/PatternBindingDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/PatternBindingDecl.qll new file mode 100644 index 00000000000..d33a36b4c08 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/PatternBindingDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.PatternBindingDecl + +class PatternBindingDecl extends PatternBindingDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/PostfixOperatorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/PostfixOperatorDecl.qll new file mode 100644 index 00000000000..a41c0358fa5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/PostfixOperatorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.PostfixOperatorDecl + +class PostfixOperatorDecl extends PostfixOperatorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/PoundDiagnosticDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/PoundDiagnosticDecl.qll new file mode 100644 index 00000000000..9eedacc02bc --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/PoundDiagnosticDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.PoundDiagnosticDecl + +class PoundDiagnosticDecl extends PoundDiagnosticDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/PrecedenceGroupDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/PrecedenceGroupDecl.qll new file mode 100644 index 00000000000..9364d2b796e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/PrecedenceGroupDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.PrecedenceGroupDecl + +class PrecedenceGroupDecl extends PrecedenceGroupDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/PrefixOperatorDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/PrefixOperatorDecl.qll new file mode 100644 index 00000000000..ec64d3652e4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/PrefixOperatorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.PrefixOperatorDecl + +class PrefixOperatorDecl extends PrefixOperatorDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ProtocolDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ProtocolDecl.qll new file mode 100644 index 00000000000..9fc5d10d8e1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ProtocolDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ProtocolDecl + +class ProtocolDecl extends ProtocolDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/StructDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/StructDecl.qll new file mode 100644 index 00000000000..71d55a033ee --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/StructDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.StructDecl + +class StructDecl extends StructDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/SubscriptDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/SubscriptDecl.qll new file mode 100644 index 00000000000..9a44c97eb37 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/SubscriptDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.SubscriptDecl + +class SubscriptDecl extends SubscriptDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/TopLevelCodeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/TopLevelCodeDecl.qll new file mode 100644 index 00000000000..606f5906473 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/TopLevelCodeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.TopLevelCodeDecl + +class TopLevelCodeDecl extends TopLevelCodeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/TypeAliasDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/TypeAliasDecl.qll new file mode 100644 index 00000000000..f3f761ebc57 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/TypeAliasDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.TypeAliasDecl + +class TypeAliasDecl extends TypeAliasDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/TypeDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/TypeDecl.qll new file mode 100644 index 00000000000..a7dfd753222 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/TypeDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.TypeDecl + +class TypeDecl extends TypeDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/ValueDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/ValueDecl.qll new file mode 100644 index 00000000000..6c964867110 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/ValueDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.ValueDecl + +class ValueDecl extends ValueDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/decl/VarDecl.qll b/swift/ql/lib/codeql/swift/elements/decl/VarDecl.qll new file mode 100644 index 00000000000..f6940944c34 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/decl/VarDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.decl.VarDecl + +class VarDecl extends VarDeclBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AbstractClosureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AbstractClosureExpr.qll new file mode 100644 index 00000000000..29af35a1dda --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AbstractClosureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AbstractClosureExpr + +class AbstractClosureExpr extends AbstractClosureExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AnyHashableErasureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AnyHashableErasureExpr.qll new file mode 100644 index 00000000000..8c636f0ddfe --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AnyHashableErasureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AnyHashableErasureExpr + +class AnyHashableErasureExpr extends AnyHashableErasureExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AnyTryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AnyTryExpr.qll new file mode 100644 index 00000000000..701b8012012 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AnyTryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AnyTryExpr + +class AnyTryExpr extends AnyTryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AppliedPropertyWrapperExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AppliedPropertyWrapperExpr.qll new file mode 100644 index 00000000000..bbc68573bf7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AppliedPropertyWrapperExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AppliedPropertyWrapperExpr + +class AppliedPropertyWrapperExpr extends AppliedPropertyWrapperExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll new file mode 100644 index 00000000000..233b26d2643 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ApplyExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ApplyExpr + +class ApplyExpr extends ApplyExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ArchetypeToSuperExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ArchetypeToSuperExpr.qll new file mode 100644 index 00000000000..5a74aafd452 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ArchetypeToSuperExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ArchetypeToSuperExpr + +class ArchetypeToSuperExpr extends ArchetypeToSuperExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/Argument.qll b/swift/ql/lib/codeql/swift/elements/expr/Argument.qll new file mode 100644 index 00000000000..a4d2229a1e3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/Argument.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.Argument + +class Argument extends ArgumentBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ArrayExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ArrayExpr.qll new file mode 100644 index 00000000000..8bb5f7222bf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ArrayExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ArrayExpr + +class ArrayExpr extends ArrayExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ArrayToPointerExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ArrayToPointerExpr.qll new file mode 100644 index 00000000000..b0df78a308b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ArrayToPointerExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ArrayToPointerExpr + +class ArrayToPointerExpr extends ArrayToPointerExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ArrowExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ArrowExpr.qll new file mode 100644 index 00000000000..301c0bdb557 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ArrowExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ArrowExpr + +class ArrowExpr extends ArrowExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AssignExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AssignExpr.qll new file mode 100644 index 00000000000..d7d29d8682e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AssignExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AssignExpr + +class AssignExpr extends AssignExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll new file mode 100644 index 00000000000..fefb9d1d3a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AutoClosureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AutoClosureExpr + +class AutoClosureExpr extends AutoClosureExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/AwaitExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/AwaitExpr.qll new file mode 100644 index 00000000000..76a17b9d181 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/AwaitExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.AwaitExpr + +class AwaitExpr extends AwaitExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BinaryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BinaryExpr.qll new file mode 100644 index 00000000000..f1ac270af47 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BinaryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BinaryExpr + +class BinaryExpr extends BinaryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BindOptionalExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BindOptionalExpr.qll new file mode 100644 index 00000000000..2b1aca34665 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BindOptionalExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BindOptionalExpr + +class BindOptionalExpr extends BindOptionalExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BooleanLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BooleanLiteralExpr.qll new file mode 100644 index 00000000000..d9a9902efa6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BooleanLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BooleanLiteralExpr + +class BooleanLiteralExpr extends BooleanLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BridgeFromObjCExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BridgeFromObjCExpr.qll new file mode 100644 index 00000000000..722d3ff1e38 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BridgeFromObjCExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BridgeFromObjCExpr + +class BridgeFromObjCExpr extends BridgeFromObjCExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BridgeToObjCExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BridgeToObjCExpr.qll new file mode 100644 index 00000000000..c9b1c7d7490 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BridgeToObjCExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BridgeToObjCExpr + +class BridgeToObjCExpr extends BridgeToObjCExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/BuiltinLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/BuiltinLiteralExpr.qll new file mode 100644 index 00000000000..f1acd68338f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/BuiltinLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.BuiltinLiteralExpr + +class BuiltinLiteralExpr extends BuiltinLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CallExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CallExpr.qll new file mode 100644 index 00000000000..224cd62b547 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CallExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CallExpr + +class CallExpr extends CallExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CaptureListExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CaptureListExpr.qll new file mode 100644 index 00000000000..2495a22c892 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CaptureListExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CaptureListExpr + +class CaptureListExpr extends CaptureListExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CheckedCastExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CheckedCastExpr.qll new file mode 100644 index 00000000000..76805e2fb23 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CheckedCastExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CheckedCastExpr + +class CheckedCastExpr extends CheckedCastExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ClassMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ClassMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..b4e5a62cdaf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ClassMetatypeToObjectExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ClassMetatypeToObjectExpr + +class ClassMetatypeToObjectExpr extends ClassMetatypeToObjectExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ClosureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ClosureExpr.qll new file mode 100644 index 00000000000..4f2158734ef --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ClosureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ClosureExpr + +class ClosureExpr extends ClosureExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CodeCompletionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CodeCompletionExpr.qll new file mode 100644 index 00000000000..ea630f2e7c2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CodeCompletionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CodeCompletionExpr + +class CodeCompletionExpr extends CodeCompletionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CoerceExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CoerceExpr.qll new file mode 100644 index 00000000000..2c89155dc56 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CoerceExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CoerceExpr + +class CoerceExpr extends CoerceExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CollectionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CollectionExpr.qll new file mode 100644 index 00000000000..bff536a3cc6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CollectionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CollectionExpr + +class CollectionExpr extends CollectionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CollectionUpcastConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CollectionUpcastConversionExpr.qll new file mode 100644 index 00000000000..cb7fb9d69b4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CollectionUpcastConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CollectionUpcastConversionExpr + +class CollectionUpcastConversionExpr extends CollectionUpcastConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ConditionalBridgeFromObjCExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ConditionalBridgeFromObjCExpr.qll new file mode 100644 index 00000000000..c25484bcd46 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ConditionalBridgeFromObjCExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ConditionalBridgeFromObjCExpr + +class ConditionalBridgeFromObjCExpr extends ConditionalBridgeFromObjCExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ConditionalCheckedCastExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ConditionalCheckedCastExpr.qll new file mode 100644 index 00000000000..cec79ca2dc7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ConditionalCheckedCastExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ConditionalCheckedCastExpr + +class ConditionalCheckedCastExpr extends ConditionalCheckedCastExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ConstructorRefCallExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ConstructorRefCallExpr.qll new file mode 100644 index 00000000000..8b52c13ac1e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ConstructorRefCallExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ConstructorRefCallExpr + +class ConstructorRefCallExpr extends ConstructorRefCallExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CovariantFunctionConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CovariantFunctionConversionExpr.qll new file mode 100644 index 00000000000..7ca8118eb61 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CovariantFunctionConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CovariantFunctionConversionExpr + +class CovariantFunctionConversionExpr extends CovariantFunctionConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/CovariantReturnConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/CovariantReturnConversionExpr.qll new file mode 100644 index 00000000000..6c8fe13e1c8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/CovariantReturnConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.CovariantReturnConversionExpr + +class CovariantReturnConversionExpr extends CovariantReturnConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DeclRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DeclRefExpr.qll new file mode 100644 index 00000000000..9531860838e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DeclRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DeclRefExpr + +class DeclRefExpr extends DeclRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DefaultArgumentExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DefaultArgumentExpr.qll new file mode 100644 index 00000000000..bb1435c97e7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DefaultArgumentExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DefaultArgumentExpr + +class DefaultArgumentExpr extends DefaultArgumentExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DerivedToBaseExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DerivedToBaseExpr.qll new file mode 100644 index 00000000000..f0052dece5e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DerivedToBaseExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DerivedToBaseExpr + +class DerivedToBaseExpr extends DerivedToBaseExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DestructureTupleExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DestructureTupleExpr.qll new file mode 100644 index 00000000000..6c657d34097 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DestructureTupleExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DestructureTupleExpr + +class DestructureTupleExpr extends DestructureTupleExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DictionaryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DictionaryExpr.qll new file mode 100644 index 00000000000..ac27502bf42 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DictionaryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DictionaryExpr + +class DictionaryExpr extends DictionaryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExpr.qll new file mode 100644 index 00000000000..de90a9cfe93 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DifferentiableFunctionExpr + +class DifferentiableFunctionExpr extends DifferentiableFunctionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExtractOriginalExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExtractOriginalExpr.qll new file mode 100644 index 00000000000..964c2438e6e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DifferentiableFunctionExtractOriginalExpr.qll @@ -0,0 +1,4 @@ +private import codeql.swift.generated.expr.DifferentiableFunctionExtractOriginalExpr + +class DifferentiableFunctionExtractOriginalExpr extends DifferentiableFunctionExtractOriginalExprBase { +} diff --git a/swift/ql/lib/codeql/swift/elements/expr/DiscardAssignmentExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DiscardAssignmentExpr.qll new file mode 100644 index 00000000000..298fa78d708 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DiscardAssignmentExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DiscardAssignmentExpr + +class DiscardAssignmentExpr extends DiscardAssignmentExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DotSelfExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DotSelfExpr.qll new file mode 100644 index 00000000000..ebbec08fe2b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DotSelfExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DotSelfExpr + +class DotSelfExpr extends DotSelfExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxBaseIgnoredExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxBaseIgnoredExpr.qll new file mode 100644 index 00000000000..74054ea1020 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxBaseIgnoredExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DotSyntaxBaseIgnoredExpr + +class DotSyntaxBaseIgnoredExpr extends DotSyntaxBaseIgnoredExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxCallExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxCallExpr.qll new file mode 100644 index 00000000000..b7052e3aeec --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DotSyntaxCallExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DotSyntaxCallExpr + +class DotSyntaxCallExpr extends DotSyntaxCallExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DynamicLookupExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DynamicLookupExpr.qll new file mode 100644 index 00000000000..da1cff8ab2c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DynamicLookupExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DynamicLookupExpr + +class DynamicLookupExpr extends DynamicLookupExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DynamicMemberRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DynamicMemberRefExpr.qll new file mode 100644 index 00000000000..e34a66e051f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DynamicMemberRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DynamicMemberRefExpr + +class DynamicMemberRefExpr extends DynamicMemberRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DynamicSubscriptExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DynamicSubscriptExpr.qll new file mode 100644 index 00000000000..b3b19ed38b6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DynamicSubscriptExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DynamicSubscriptExpr + +class DynamicSubscriptExpr extends DynamicSubscriptExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/DynamicTypeExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/DynamicTypeExpr.qll new file mode 100644 index 00000000000..9b72774a885 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/DynamicTypeExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.DynamicTypeExpr + +class DynamicTypeExpr extends DynamicTypeExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/EditorPlaceholderExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/EditorPlaceholderExpr.qll new file mode 100644 index 00000000000..4598810896c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/EditorPlaceholderExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.EditorPlaceholderExpr + +class EditorPlaceholderExpr extends EditorPlaceholderExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/EnumIsCaseExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/EnumIsCaseExpr.qll new file mode 100644 index 00000000000..ee17c76f2b1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/EnumIsCaseExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.EnumIsCaseExpr + +class EnumIsCaseExpr extends EnumIsCaseExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ErasureExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ErasureExpr.qll new file mode 100644 index 00000000000..2067736182d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ErasureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ErasureExpr + +class ErasureExpr extends ErasureExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ErrorExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ErrorExpr.qll new file mode 100644 index 00000000000..294bf668755 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ErrorExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ErrorExpr + +class ErrorExpr extends ErrorExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ExistentialMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ExistentialMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..04e052ce2b5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ExistentialMetatypeToObjectExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ExistentialMetatypeToObjectExpr + +class ExistentialMetatypeToObjectExpr extends ExistentialMetatypeToObjectExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ExplicitCastExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ExplicitCastExpr.qll new file mode 100644 index 00000000000..7b64b61a7a5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ExplicitCastExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ExplicitCastExpr + +class ExplicitCastExpr extends ExplicitCastExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/Expr.qll b/swift/ql/lib/codeql/swift/elements/expr/Expr.qll new file mode 100644 index 00000000000..6e96d3b45bd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/Expr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.Expr + +class Expr extends ExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/FloatLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/FloatLiteralExpr.qll new file mode 100644 index 00000000000..91240e43acf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/FloatLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.FloatLiteralExpr + +class FloatLiteralExpr extends FloatLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ForceTryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ForceTryExpr.qll new file mode 100644 index 00000000000..3f9ee33a2b8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ForceTryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ForceTryExpr + +class ForceTryExpr extends ForceTryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ForceValueExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ForceValueExpr.qll new file mode 100644 index 00000000000..c2b13fdbef4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ForceValueExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ForceValueExpr + +class ForceValueExpr extends ForceValueExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ForcedCheckedCastExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ForcedCheckedCastExpr.qll new file mode 100644 index 00000000000..2d8c443aeb4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ForcedCheckedCastExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ForcedCheckedCastExpr + +class ForcedCheckedCastExpr extends ForcedCheckedCastExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ForeignObjectConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ForeignObjectConversionExpr.qll new file mode 100644 index 00000000000..953f833ef61 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ForeignObjectConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ForeignObjectConversionExpr + +class ForeignObjectConversionExpr extends ForeignObjectConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/FunctionConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/FunctionConversionExpr.qll new file mode 100644 index 00000000000..bf5add5d2cc --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/FunctionConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.FunctionConversionExpr + +class FunctionConversionExpr extends FunctionConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/IdentityExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/IdentityExpr.qll new file mode 100644 index 00000000000..43aaa11fe69 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/IdentityExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.IdentityExpr + +class IdentityExpr extends IdentityExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/IfExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/IfExpr.qll new file mode 100644 index 00000000000..e84c462dbde --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/IfExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.IfExpr + +class IfExpr extends IfExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ImplicitConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ImplicitConversionExpr.qll new file mode 100644 index 00000000000..300a2927bc0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ImplicitConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ImplicitConversionExpr + +class ImplicitConversionExpr extends ImplicitConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/InOutExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/InOutExpr.qll new file mode 100644 index 00000000000..f4a29e0e1cc --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/InOutExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.InOutExpr + +class InOutExpr extends InOutExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/InOutToPointerExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/InOutToPointerExpr.qll new file mode 100644 index 00000000000..a7f6a1c1a4e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/InOutToPointerExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.InOutToPointerExpr + +class InOutToPointerExpr extends InOutToPointerExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/InjectIntoOptionalExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/InjectIntoOptionalExpr.qll new file mode 100644 index 00000000000..9473862e519 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/InjectIntoOptionalExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.InjectIntoOptionalExpr + +class InjectIntoOptionalExpr extends InjectIntoOptionalExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/IntegerLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/IntegerLiteralExpr.qll new file mode 100644 index 00000000000..121b1b9e3b3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/IntegerLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.IntegerLiteralExpr + +class IntegerLiteralExpr extends IntegerLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/InterpolatedStringLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/InterpolatedStringLiteralExpr.qll new file mode 100644 index 00000000000..3095dc12001 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/InterpolatedStringLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.InterpolatedStringLiteralExpr + +class InterpolatedStringLiteralExpr extends InterpolatedStringLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/IsExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/IsExpr.qll new file mode 100644 index 00000000000..e823adc489c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/IsExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.IsExpr + +class IsExpr extends IsExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/KeyPathApplicationExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/KeyPathApplicationExpr.qll new file mode 100644 index 00000000000..857981bbe5c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/KeyPathApplicationExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.KeyPathApplicationExpr + +class KeyPathApplicationExpr extends KeyPathApplicationExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/KeyPathDotExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/KeyPathDotExpr.qll new file mode 100644 index 00000000000..2882cbc4d87 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/KeyPathDotExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.KeyPathDotExpr + +class KeyPathDotExpr extends KeyPathDotExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/KeyPathExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/KeyPathExpr.qll new file mode 100644 index 00000000000..4c7ef30c882 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/KeyPathExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.KeyPathExpr + +class KeyPathExpr extends KeyPathExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LazyInitializerExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LazyInitializerExpr.qll new file mode 100644 index 00000000000..55e2398782a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LazyInitializerExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LazyInitializerExpr + +class LazyInitializerExpr extends LazyInitializerExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExpr.qll new file mode 100644 index 00000000000..77175f78843 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LinearFunctionExpr + +class LinearFunctionExpr extends LinearFunctionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExtractOriginalExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExtractOriginalExpr.qll new file mode 100644 index 00000000000..00173706dff --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LinearFunctionExtractOriginalExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LinearFunctionExtractOriginalExpr + +class LinearFunctionExtractOriginalExpr extends LinearFunctionExtractOriginalExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LinearToDifferentiableFunctionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LinearToDifferentiableFunctionExpr.qll new file mode 100644 index 00000000000..8db032afbbd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LinearToDifferentiableFunctionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LinearToDifferentiableFunctionExpr + +class LinearToDifferentiableFunctionExpr extends LinearToDifferentiableFunctionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LiteralExpr.qll new file mode 100644 index 00000000000..def5c1d6a0e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LiteralExpr + +class LiteralExpr extends LiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LoadExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LoadExpr.qll new file mode 100644 index 00000000000..14e08725b1e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LoadExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LoadExpr + +class LoadExpr extends LoadExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/LookupExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/LookupExpr.qll new file mode 100644 index 00000000000..65f508fe7c5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/LookupExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.LookupExpr + +class LookupExpr extends LookupExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/MagicIdentifierLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/MagicIdentifierLiteralExpr.qll new file mode 100644 index 00000000000..3fa5f6f1341 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/MagicIdentifierLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.MagicIdentifierLiteralExpr + +class MagicIdentifierLiteralExpr extends MagicIdentifierLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/MakeTemporarilyEscapableExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/MakeTemporarilyEscapableExpr.qll new file mode 100644 index 00000000000..085a6d213a6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/MakeTemporarilyEscapableExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.MakeTemporarilyEscapableExpr + +class MakeTemporarilyEscapableExpr extends MakeTemporarilyEscapableExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/MemberRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/MemberRefExpr.qll new file mode 100644 index 00000000000..a85e5c8766d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/MemberRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.MemberRefExpr + +class MemberRefExpr extends MemberRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/MetatypeConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/MetatypeConversionExpr.qll new file mode 100644 index 00000000000..d92172286a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/MetatypeConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.MetatypeConversionExpr + +class MetatypeConversionExpr extends MetatypeConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/NilLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/NilLiteralExpr.qll new file mode 100644 index 00000000000..bd4731de537 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/NilLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.NilLiteralExpr + +class NilLiteralExpr extends NilLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/NumberLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/NumberLiteralExpr.qll new file mode 100644 index 00000000000..ca2171b2cac --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/NumberLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.NumberLiteralExpr + +class NumberLiteralExpr extends NumberLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ObjCSelectorExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ObjCSelectorExpr.qll new file mode 100644 index 00000000000..8a4a8d34b69 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ObjCSelectorExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ObjCSelectorExpr + +class ObjCSelectorExpr extends ObjCSelectorExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ObjectLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ObjectLiteralExpr.qll new file mode 100644 index 00000000000..28702427376 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ObjectLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ObjectLiteralExpr + +class ObjectLiteralExpr extends ObjectLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OneWayExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OneWayExpr.qll new file mode 100644 index 00000000000..5fce03ceb13 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OneWayExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OneWayExpr + +class OneWayExpr extends OneWayExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OpaqueValueExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OpaqueValueExpr.qll new file mode 100644 index 00000000000..699113fa3c7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OpaqueValueExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OpaqueValueExpr + +class OpaqueValueExpr extends OpaqueValueExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OpenExistentialExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OpenExistentialExpr.qll new file mode 100644 index 00000000000..7beaa9c602b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OpenExistentialExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OpenExistentialExpr + +class OpenExistentialExpr extends OpenExistentialExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OptionalEvaluationExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OptionalEvaluationExpr.qll new file mode 100644 index 00000000000..67e06f809b9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OptionalEvaluationExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OptionalEvaluationExpr + +class OptionalEvaluationExpr extends OptionalEvaluationExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OptionalTryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OptionalTryExpr.qll new file mode 100644 index 00000000000..56bba573716 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OptionalTryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OptionalTryExpr + +class OptionalTryExpr extends OptionalTryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OtherConstructorDeclRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OtherConstructorDeclRefExpr.qll new file mode 100644 index 00000000000..2cfbd3ea4d9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OtherConstructorDeclRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OtherConstructorDeclRefExpr + +class OtherConstructorDeclRefExpr extends OtherConstructorDeclRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OverloadSetRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OverloadSetRefExpr.qll new file mode 100644 index 00000000000..0a4818b6da8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OverloadSetRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OverloadSetRefExpr + +class OverloadSetRefExpr extends OverloadSetRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/OverloadedDeclRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/OverloadedDeclRefExpr.qll new file mode 100644 index 00000000000..2066218ec98 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/OverloadedDeclRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.OverloadedDeclRefExpr + +class OverloadedDeclRefExpr extends OverloadedDeclRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ParenExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ParenExpr.qll new file mode 100644 index 00000000000..7b0b8178c53 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ParenExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ParenExpr + +class ParenExpr extends ParenExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/PointerToPointerExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/PointerToPointerExpr.qll new file mode 100644 index 00000000000..929cd71c8c1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/PointerToPointerExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.PointerToPointerExpr + +class PointerToPointerExpr extends PointerToPointerExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/PostfixUnaryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/PostfixUnaryExpr.qll new file mode 100644 index 00000000000..062ddd9d30f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/PostfixUnaryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.PostfixUnaryExpr + +class PostfixUnaryExpr extends PostfixUnaryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/PrefixUnaryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/PrefixUnaryExpr.qll new file mode 100644 index 00000000000..15cca3c6de8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/PrefixUnaryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.PrefixUnaryExpr + +class PrefixUnaryExpr extends PrefixUnaryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/PropertyWrapperValuePlaceholderExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/PropertyWrapperValuePlaceholderExpr.qll new file mode 100644 index 00000000000..19e2dc67199 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/PropertyWrapperValuePlaceholderExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.PropertyWrapperValuePlaceholderExpr + +class PropertyWrapperValuePlaceholderExpr extends PropertyWrapperValuePlaceholderExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/ProtocolMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/ProtocolMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..7e29233190c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/ProtocolMetatypeToObjectExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.ProtocolMetatypeToObjectExpr + +class ProtocolMetatypeToObjectExpr extends ProtocolMetatypeToObjectExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/RebindSelfInConstructorExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/RebindSelfInConstructorExpr.qll new file mode 100644 index 00000000000..5aa2711801d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/RebindSelfInConstructorExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.RebindSelfInConstructorExpr + +class RebindSelfInConstructorExpr extends RebindSelfInConstructorExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/RegexLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/RegexLiteralExpr.qll new file mode 100644 index 00000000000..ef087bc1681 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/RegexLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.RegexLiteralExpr + +class RegexLiteralExpr extends RegexLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/SelfApplyExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/SelfApplyExpr.qll new file mode 100644 index 00000000000..dda4557a8ca --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/SelfApplyExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.SelfApplyExpr + +class SelfApplyExpr extends SelfApplyExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/SequenceExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/SequenceExpr.qll new file mode 100644 index 00000000000..eb72faeab26 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/SequenceExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.SequenceExpr + +class SequenceExpr extends SequenceExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/StringLiteralExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/StringLiteralExpr.qll new file mode 100644 index 00000000000..cd2ff43a039 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/StringLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.StringLiteralExpr + +class StringLiteralExpr extends StringLiteralExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/StringToPointerExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/StringToPointerExpr.qll new file mode 100644 index 00000000000..04b21548988 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/StringToPointerExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.StringToPointerExpr + +class StringToPointerExpr extends StringToPointerExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/SubscriptExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/SubscriptExpr.qll new file mode 100644 index 00000000000..8ae51baae26 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/SubscriptExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.SubscriptExpr + +class SubscriptExpr extends SubscriptExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/SuperRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/SuperRefExpr.qll new file mode 100644 index 00000000000..292431be730 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/SuperRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.SuperRefExpr + +class SuperRefExpr extends SuperRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/TapExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/TapExpr.qll new file mode 100644 index 00000000000..e0608415f1d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/TapExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.TapExpr + +class TapExpr extends TapExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/TryExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/TryExpr.qll new file mode 100644 index 00000000000..0c9fc51cfe0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/TryExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.TryExpr + +class TryExpr extends TryExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/TupleElementExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/TupleElementExpr.qll new file mode 100644 index 00000000000..9e92dae7f00 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/TupleElementExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.TupleElementExpr + +class TupleElementExpr extends TupleElementExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/TupleExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/TupleExpr.qll new file mode 100644 index 00000000000..1ffe11cf28b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/TupleExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.TupleExpr + +class TupleExpr extends TupleExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/TypeExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/TypeExpr.qll new file mode 100644 index 00000000000..9ecde1d026d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/TypeExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.TypeExpr + +class TypeExpr extends TypeExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnderlyingToOpaqueExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnderlyingToOpaqueExpr.qll new file mode 100644 index 00000000000..24a5365e1fb --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnderlyingToOpaqueExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnderlyingToOpaqueExpr + +class UnderlyingToOpaqueExpr extends UnderlyingToOpaqueExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnevaluatedInstanceExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnevaluatedInstanceExpr.qll new file mode 100644 index 00000000000..25beeb6bf22 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnevaluatedInstanceExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnevaluatedInstanceExpr + +class UnevaluatedInstanceExpr extends UnevaluatedInstanceExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDeclRefExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDeclRefExpr.qll new file mode 100644 index 00000000000..281e1db01a7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDeclRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedDeclRefExpr + +class UnresolvedDeclRefExpr extends UnresolvedDeclRefExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDotExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDotExpr.qll new file mode 100644 index 00000000000..f71c018d46e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedDotExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedDotExpr + +class UnresolvedDotExpr extends UnresolvedDotExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberChainResultExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberChainResultExpr.qll new file mode 100644 index 00000000000..9632eb15408 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberChainResultExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedMemberChainResultExpr + +class UnresolvedMemberChainResultExpr extends UnresolvedMemberChainResultExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberExpr.qll new file mode 100644 index 00000000000..9e8ef3e6379 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedMemberExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedMemberExpr + +class UnresolvedMemberExpr extends UnresolvedMemberExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedPatternExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedPatternExpr.qll new file mode 100644 index 00000000000..adee187b3d7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedPatternExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedPatternExpr + +class UnresolvedPatternExpr extends UnresolvedPatternExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedSpecializeExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedSpecializeExpr.qll new file mode 100644 index 00000000000..0971f55a0d9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedSpecializeExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedSpecializeExpr + +class UnresolvedSpecializeExpr extends UnresolvedSpecializeExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/UnresolvedTypeConversionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedTypeConversionExpr.qll new file mode 100644 index 00000000000..694d83c0543 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/UnresolvedTypeConversionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.UnresolvedTypeConversionExpr + +class UnresolvedTypeConversionExpr extends UnresolvedTypeConversionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/expr/VarargExpansionExpr.qll b/swift/ql/lib/codeql/swift/elements/expr/VarargExpansionExpr.qll new file mode 100644 index 00000000000..0769e7ce6dd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/expr/VarargExpansionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.expr.VarargExpansionExpr + +class VarargExpansionExpr extends VarargExpansionExprBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/AnyPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/AnyPattern.qll new file mode 100644 index 00000000000..3db71bff5db --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/AnyPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.AnyPattern + +class AnyPattern extends AnyPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/BindingPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/BindingPattern.qll new file mode 100644 index 00000000000..2c9d534942b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/BindingPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.BindingPattern + +class BindingPattern extends BindingPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/BoolPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/BoolPattern.qll new file mode 100644 index 00000000000..69e915e0ac6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/BoolPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.BoolPattern + +class BoolPattern extends BoolPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/EnumElementPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/EnumElementPattern.qll new file mode 100644 index 00000000000..4a8d71ab603 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/EnumElementPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.EnumElementPattern + +class EnumElementPattern extends EnumElementPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/ExprPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/ExprPattern.qll new file mode 100644 index 00000000000..55ab31a698f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/ExprPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.ExprPattern + +class ExprPattern extends ExprPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/IsPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/IsPattern.qll new file mode 100644 index 00000000000..e5b9fc22e53 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/IsPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.IsPattern + +class IsPattern extends IsPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/NamedPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/NamedPattern.qll new file mode 100644 index 00000000000..bfd06575bb9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/NamedPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.NamedPattern + +class NamedPattern extends NamedPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/OptionalSomePattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/OptionalSomePattern.qll new file mode 100644 index 00000000000..acd3ee82477 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/OptionalSomePattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.OptionalSomePattern + +class OptionalSomePattern extends OptionalSomePatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/ParenPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/ParenPattern.qll new file mode 100644 index 00000000000..fa6fcb3fb10 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/ParenPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.ParenPattern + +class ParenPattern extends ParenPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/Pattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/Pattern.qll new file mode 100644 index 00000000000..c28623881dd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/Pattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.Pattern + +class Pattern extends PatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/TuplePattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/TuplePattern.qll new file mode 100644 index 00000000000..621029ddb1b --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/TuplePattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.TuplePattern + +class TuplePattern extends TuplePatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/pattern/TypedPattern.qll b/swift/ql/lib/codeql/swift/elements/pattern/TypedPattern.qll new file mode 100644 index 00000000000..95fea7f2302 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/pattern/TypedPattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.pattern.TypedPattern + +class TypedPattern extends TypedPatternBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/BraceStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/BraceStmt.qll new file mode 100644 index 00000000000..7c9f0d09318 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/BraceStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.BraceStmt + +class BraceStmt extends BraceStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/BreakStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/BreakStmt.qll new file mode 100644 index 00000000000..7a756b97656 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/BreakStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.BreakStmt + +class BreakStmt extends BreakStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/CaseLabelItem.qll b/swift/ql/lib/codeql/swift/elements/stmt/CaseLabelItem.qll new file mode 100644 index 00000000000..98b410005a1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/CaseLabelItem.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.CaseLabelItem + +class CaseLabelItem extends CaseLabelItemBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/CaseStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/CaseStmt.qll new file mode 100644 index 00000000000..8911af77377 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/CaseStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.CaseStmt + +class CaseStmt extends CaseStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/ConditionElement.qll b/swift/ql/lib/codeql/swift/elements/stmt/ConditionElement.qll new file mode 100644 index 00000000000..2cd940afb5e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/ConditionElement.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.ConditionElement + +class ConditionElement extends ConditionElementBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/ContinueStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/ContinueStmt.qll new file mode 100644 index 00000000000..b31996ae298 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/ContinueStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.ContinueStmt + +class ContinueStmt extends ContinueStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/DeferStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/DeferStmt.qll new file mode 100644 index 00000000000..69fd1f37d96 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/DeferStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.DeferStmt + +class DeferStmt extends DeferStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/DoCatchStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/DoCatchStmt.qll new file mode 100644 index 00000000000..2a2c15fcbe0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/DoCatchStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.DoCatchStmt + +class DoCatchStmt extends DoCatchStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/DoStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/DoStmt.qll new file mode 100644 index 00000000000..c6cdd8af01f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/DoStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.DoStmt + +class DoStmt extends DoStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/FailStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/FailStmt.qll new file mode 100644 index 00000000000..568d812c506 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/FailStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.FailStmt + +class FailStmt extends FailStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/FallthroughStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/FallthroughStmt.qll new file mode 100644 index 00000000000..9c8c21b8ffc --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/FallthroughStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.FallthroughStmt + +class FallthroughStmt extends FallthroughStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/ForEachStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/ForEachStmt.qll new file mode 100644 index 00000000000..5a89881ee25 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/ForEachStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.ForEachStmt + +class ForEachStmt extends ForEachStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/GuardStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/GuardStmt.qll new file mode 100644 index 00000000000..5604fa2388c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/GuardStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.GuardStmt + +class GuardStmt extends GuardStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/IfStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/IfStmt.qll new file mode 100644 index 00000000000..7b93a37a1de --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/IfStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.IfStmt + +class IfStmt extends IfStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/LabeledConditionalStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/LabeledConditionalStmt.qll new file mode 100644 index 00000000000..54c4a9c3391 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/LabeledConditionalStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.LabeledConditionalStmt + +class LabeledConditionalStmt extends LabeledConditionalStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/LabeledStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/LabeledStmt.qll new file mode 100644 index 00000000000..36c1c391db9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/LabeledStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.LabeledStmt + +class LabeledStmt extends LabeledStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/PoundAssertStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/PoundAssertStmt.qll new file mode 100644 index 00000000000..c65b5f02440 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/PoundAssertStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.PoundAssertStmt + +class PoundAssertStmt extends PoundAssertStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/RepeatWhileStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/RepeatWhileStmt.qll new file mode 100644 index 00000000000..5de20648269 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/RepeatWhileStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.RepeatWhileStmt + +class RepeatWhileStmt extends RepeatWhileStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/ReturnStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/ReturnStmt.qll new file mode 100644 index 00000000000..6ab3177f80d --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/ReturnStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.ReturnStmt + +class ReturnStmt extends ReturnStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/Stmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/Stmt.qll new file mode 100644 index 00000000000..fb7aaa9bf0e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/Stmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.Stmt + +class Stmt extends StmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/StmtCondition.qll b/swift/ql/lib/codeql/swift/elements/stmt/StmtCondition.qll new file mode 100644 index 00000000000..5e7a45deb62 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/StmtCondition.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.StmtCondition + +class StmtCondition extends StmtConditionBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/SwitchStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/SwitchStmt.qll new file mode 100644 index 00000000000..5afa84fb893 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/SwitchStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.SwitchStmt + +class SwitchStmt extends SwitchStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/ThrowStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/ThrowStmt.qll new file mode 100644 index 00000000000..1991fac6e97 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/ThrowStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.ThrowStmt + +class ThrowStmt extends ThrowStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/WhileStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/WhileStmt.qll new file mode 100644 index 00000000000..29aa526ea7e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/WhileStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.WhileStmt + +class WhileStmt extends WhileStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/stmt/YieldStmt.qll b/swift/ql/lib/codeql/swift/elements/stmt/YieldStmt.qll new file mode 100644 index 00000000000..812e77fee99 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/stmt/YieldStmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.stmt.YieldStmt + +class YieldStmt extends YieldStmtBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/AnyBuiltinIntegerType.qll b/swift/ql/lib/codeql/swift/elements/type/AnyBuiltinIntegerType.qll new file mode 100644 index 00000000000..20039a87c10 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/AnyBuiltinIntegerType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.AnyBuiltinIntegerType + +class AnyBuiltinIntegerType extends AnyBuiltinIntegerTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/AnyFunctionType.qll b/swift/ql/lib/codeql/swift/elements/type/AnyFunctionType.qll new file mode 100644 index 00000000000..db15a0242fb --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/AnyFunctionType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.AnyFunctionType + +class AnyFunctionType extends AnyFunctionTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/AnyGenericType.qll b/swift/ql/lib/codeql/swift/elements/type/AnyGenericType.qll new file mode 100644 index 00000000000..1dac1499152 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/AnyGenericType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.AnyGenericType + +class AnyGenericType extends AnyGenericTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/AnyMetatypeType.qll b/swift/ql/lib/codeql/swift/elements/type/AnyMetatypeType.qll new file mode 100644 index 00000000000..17c5c4a5f7f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/AnyMetatypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.AnyMetatypeType + +class AnyMetatypeType extends AnyMetatypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/ArchetypeType.qll new file mode 100644 index 00000000000..9df11089169 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ArchetypeType + +class ArchetypeType extends ArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ArraySliceType.qll b/swift/ql/lib/codeql/swift/elements/type/ArraySliceType.qll new file mode 100644 index 00000000000..c7e8e9d90a8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ArraySliceType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ArraySliceType + +class ArraySliceType extends ArraySliceTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BoundGenericClassType.qll b/swift/ql/lib/codeql/swift/elements/type/BoundGenericClassType.qll new file mode 100644 index 00000000000..f21d398cea5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BoundGenericClassType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BoundGenericClassType + +class BoundGenericClassType extends BoundGenericClassTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BoundGenericEnumType.qll b/swift/ql/lib/codeql/swift/elements/type/BoundGenericEnumType.qll new file mode 100644 index 00000000000..ecc5556f50e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BoundGenericEnumType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BoundGenericEnumType + +class BoundGenericEnumType extends BoundGenericEnumTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BoundGenericStructType.qll b/swift/ql/lib/codeql/swift/elements/type/BoundGenericStructType.qll new file mode 100644 index 00000000000..c680bef2a64 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BoundGenericStructType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BoundGenericStructType + +class BoundGenericStructType extends BoundGenericStructTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BoundGenericType.qll b/swift/ql/lib/codeql/swift/elements/type/BoundGenericType.qll new file mode 100644 index 00000000000..011ef8af1ff --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BoundGenericType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BoundGenericType + +class BoundGenericType extends BoundGenericTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinBridgeObjectType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinBridgeObjectType.qll new file mode 100644 index 00000000000..fa99caf26a3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinBridgeObjectType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinBridgeObjectType + +class BuiltinBridgeObjectType extends BuiltinBridgeObjectTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinDefaultActorStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinDefaultActorStorageType.qll new file mode 100644 index 00000000000..fe99dd581bf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinDefaultActorStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinDefaultActorStorageType + +class BuiltinDefaultActorStorageType extends BuiltinDefaultActorStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinExecutorType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinExecutorType.qll new file mode 100644 index 00000000000..12634702f41 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinExecutorType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinExecutorType + +class BuiltinExecutorType extends BuiltinExecutorTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinFloatType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinFloatType.qll new file mode 100644 index 00000000000..ff597765617 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinFloatType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinFloatType + +class BuiltinFloatType extends BuiltinFloatTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerLiteralType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerLiteralType.qll new file mode 100644 index 00000000000..bd67fa0ab5c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerLiteralType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinIntegerLiteralType + +class BuiltinIntegerLiteralType extends BuiltinIntegerLiteralTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerType.qll new file mode 100644 index 00000000000..b1eaa6fd78a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinIntegerType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinIntegerType + +class BuiltinIntegerType extends BuiltinIntegerTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinJobType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinJobType.qll new file mode 100644 index 00000000000..93b860976ad --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinJobType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinJobType + +class BuiltinJobType extends BuiltinJobTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinNativeObjectType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinNativeObjectType.qll new file mode 100644 index 00000000000..bcd88b370b9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinNativeObjectType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinNativeObjectType + +class BuiltinNativeObjectType extends BuiltinNativeObjectTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinRawPointerType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinRawPointerType.qll new file mode 100644 index 00000000000..73f188a9398 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinRawPointerType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinRawPointerType + +class BuiltinRawPointerType extends BuiltinRawPointerTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinRawUnsafeContinuationType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinRawUnsafeContinuationType.qll new file mode 100644 index 00000000000..02c814b20f8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinRawUnsafeContinuationType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinRawUnsafeContinuationType + +class BuiltinRawUnsafeContinuationType extends BuiltinRawUnsafeContinuationTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinType.qll new file mode 100644 index 00000000000..5e6c65ed00a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinType + +class BuiltinType extends BuiltinTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinUnsafeValueBufferType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinUnsafeValueBufferType.qll new file mode 100644 index 00000000000..8d4e2c5a781 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinUnsafeValueBufferType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinUnsafeValueBufferType + +class BuiltinUnsafeValueBufferType extends BuiltinUnsafeValueBufferTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/BuiltinVectorType.qll b/swift/ql/lib/codeql/swift/elements/type/BuiltinVectorType.qll new file mode 100644 index 00000000000..dd8b696c05a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/BuiltinVectorType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.BuiltinVectorType + +class BuiltinVectorType extends BuiltinVectorTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ClassType.qll b/swift/ql/lib/codeql/swift/elements/type/ClassType.qll new file mode 100644 index 00000000000..224e1694fd3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ClassType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ClassType + +class ClassType extends ClassTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/DependentMemberType.qll b/swift/ql/lib/codeql/swift/elements/type/DependentMemberType.qll new file mode 100644 index 00000000000..1ab6a37b188 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/DependentMemberType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.DependentMemberType + +class DependentMemberType extends DependentMemberTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/DictionaryType.qll b/swift/ql/lib/codeql/swift/elements/type/DictionaryType.qll new file mode 100644 index 00000000000..5007515b07c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/DictionaryType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.DictionaryType + +class DictionaryType extends DictionaryTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/DynamicSelfType.qll b/swift/ql/lib/codeql/swift/elements/type/DynamicSelfType.qll new file mode 100644 index 00000000000..1d5923d4aad --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/DynamicSelfType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.DynamicSelfType + +class DynamicSelfType extends DynamicSelfTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/EnumType.qll b/swift/ql/lib/codeql/swift/elements/type/EnumType.qll new file mode 100644 index 00000000000..79b0654629a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/EnumType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.EnumType + +class EnumType extends EnumTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ErrorType.qll b/swift/ql/lib/codeql/swift/elements/type/ErrorType.qll new file mode 100644 index 00000000000..c63eec4471c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ErrorType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ErrorType + +class ErrorType extends ErrorTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ExistentialMetatypeType.qll b/swift/ql/lib/codeql/swift/elements/type/ExistentialMetatypeType.qll new file mode 100644 index 00000000000..0e8da0628bc --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ExistentialMetatypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ExistentialMetatypeType + +class ExistentialMetatypeType extends ExistentialMetatypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ExistentialType.qll b/swift/ql/lib/codeql/swift/elements/type/ExistentialType.qll new file mode 100644 index 00000000000..6730daf49cf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ExistentialType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ExistentialType + +class ExistentialType extends ExistentialTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/FunctionType.qll b/swift/ql/lib/codeql/swift/elements/type/FunctionType.qll new file mode 100644 index 00000000000..9e795e9a008 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/FunctionType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.FunctionType + +class FunctionType extends FunctionTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/GenericFunctionType.qll b/swift/ql/lib/codeql/swift/elements/type/GenericFunctionType.qll new file mode 100644 index 00000000000..427e2f22b8a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/GenericFunctionType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.GenericFunctionType + +class GenericFunctionType extends GenericFunctionTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/GenericTypeParamType.qll b/swift/ql/lib/codeql/swift/elements/type/GenericTypeParamType.qll new file mode 100644 index 00000000000..7b026cf73b4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/GenericTypeParamType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.GenericTypeParamType + +class GenericTypeParamType extends GenericTypeParamTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/InOutType.qll b/swift/ql/lib/codeql/swift/elements/type/InOutType.qll new file mode 100644 index 00000000000..d344ded881a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/InOutType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.InOutType + +class InOutType extends InOutTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/LValueType.qll b/swift/ql/lib/codeql/swift/elements/type/LValueType.qll new file mode 100644 index 00000000000..c8425ea42de --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/LValueType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.LValueType + +class LValueType extends LValueTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/MetatypeType.qll b/swift/ql/lib/codeql/swift/elements/type/MetatypeType.qll new file mode 100644 index 00000000000..05b8b1c0171 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/MetatypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.MetatypeType + +class MetatypeType extends MetatypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ModuleType.qll b/swift/ql/lib/codeql/swift/elements/type/ModuleType.qll new file mode 100644 index 00000000000..2716ceb63bf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ModuleType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ModuleType + +class ModuleType extends ModuleTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/NestedArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/NestedArchetypeType.qll new file mode 100644 index 00000000000..743676663fe --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/NestedArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.NestedArchetypeType + +class NestedArchetypeType extends NestedArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/NominalOrBoundGenericNominalType.qll b/swift/ql/lib/codeql/swift/elements/type/NominalOrBoundGenericNominalType.qll new file mode 100644 index 00000000000..45b6c084f07 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/NominalOrBoundGenericNominalType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.NominalOrBoundGenericNominalType + +class NominalOrBoundGenericNominalType extends NominalOrBoundGenericNominalTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/NominalType.qll b/swift/ql/lib/codeql/swift/elements/type/NominalType.qll new file mode 100644 index 00000000000..f1a80378ef5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/NominalType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.NominalType + +class NominalType extends NominalTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/OpaqueTypeArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/OpaqueTypeArchetypeType.qll new file mode 100644 index 00000000000..1a78e018d88 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/OpaqueTypeArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.OpaqueTypeArchetypeType + +class OpaqueTypeArchetypeType extends OpaqueTypeArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/OpenedArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/OpenedArchetypeType.qll new file mode 100644 index 00000000000..0d0d8946abd --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/OpenedArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.OpenedArchetypeType + +class OpenedArchetypeType extends OpenedArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/OptionalType.qll b/swift/ql/lib/codeql/swift/elements/type/OptionalType.qll new file mode 100644 index 00000000000..104b0b01a41 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/OptionalType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.OptionalType + +class OptionalType extends OptionalTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ParenType.qll b/swift/ql/lib/codeql/swift/elements/type/ParenType.qll new file mode 100644 index 00000000000..e8bf52ec9be --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ParenType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ParenType + +class ParenType extends ParenTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/PlaceholderType.qll b/swift/ql/lib/codeql/swift/elements/type/PlaceholderType.qll new file mode 100644 index 00000000000..5a8e64bf29f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/PlaceholderType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.PlaceholderType + +class PlaceholderType extends PlaceholderTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/PrimaryArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/PrimaryArchetypeType.qll new file mode 100644 index 00000000000..c94a943bbcf --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/PrimaryArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.PrimaryArchetypeType + +class PrimaryArchetypeType extends PrimaryArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ProtocolCompositionType.qll b/swift/ql/lib/codeql/swift/elements/type/ProtocolCompositionType.qll new file mode 100644 index 00000000000..3a38777384c --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ProtocolCompositionType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ProtocolCompositionType + +class ProtocolCompositionType extends ProtocolCompositionTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ProtocolType.qll b/swift/ql/lib/codeql/swift/elements/type/ProtocolType.qll new file mode 100644 index 00000000000..1ea30950138 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ProtocolType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ProtocolType + +class ProtocolType extends ProtocolTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/ReferenceStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/ReferenceStorageType.qll new file mode 100644 index 00000000000..d2af3d9b416 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/ReferenceStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.ReferenceStorageType + +class ReferenceStorageType extends ReferenceStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SequenceArchetypeType.qll b/swift/ql/lib/codeql/swift/elements/type/SequenceArchetypeType.qll new file mode 100644 index 00000000000..2d6a4cb962e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SequenceArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SequenceArchetypeType + +class SequenceArchetypeType extends SequenceArchetypeTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SilBlockStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/SilBlockStorageType.qll new file mode 100644 index 00000000000..50aa5ede168 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SilBlockStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SilBlockStorageType + +class SilBlockStorageType extends SilBlockStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SilBoxType.qll b/swift/ql/lib/codeql/swift/elements/type/SilBoxType.qll new file mode 100644 index 00000000000..99d131ea41a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SilBoxType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SilBoxType + +class SilBoxType extends SilBoxTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SilFunctionType.qll b/swift/ql/lib/codeql/swift/elements/type/SilFunctionType.qll new file mode 100644 index 00000000000..9f75cc41933 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SilFunctionType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SilFunctionType + +class SilFunctionType extends SilFunctionTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SilTokenType.qll b/swift/ql/lib/codeql/swift/elements/type/SilTokenType.qll new file mode 100644 index 00000000000..2ab43b77fd9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SilTokenType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SilTokenType + +class SilTokenType extends SilTokenTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/StructType.qll b/swift/ql/lib/codeql/swift/elements/type/StructType.qll new file mode 100644 index 00000000000..1026b9ebd3a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/StructType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.StructType + +class StructType extends StructTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SubstitutableType.qll b/swift/ql/lib/codeql/swift/elements/type/SubstitutableType.qll new file mode 100644 index 00000000000..cb5b8ff3d96 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SubstitutableType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SubstitutableType + +class SubstitutableType extends SubstitutableTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SugarType.qll b/swift/ql/lib/codeql/swift/elements/type/SugarType.qll new file mode 100644 index 00000000000..f5c90cd58d8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SugarType + +class SugarType extends SugarTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/SyntaxSugarType.qll b/swift/ql/lib/codeql/swift/elements/type/SyntaxSugarType.qll new file mode 100644 index 00000000000..fffd8204a4f --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/SyntaxSugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.SyntaxSugarType + +class SyntaxSugarType extends SyntaxSugarTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/TupleType.qll b/swift/ql/lib/codeql/swift/elements/type/TupleType.qll new file mode 100644 index 00000000000..fdc081f8e62 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/TupleType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.TupleType + +class TupleType extends TupleTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/Type.qll b/swift/ql/lib/codeql/swift/elements/type/Type.qll new file mode 100644 index 00000000000..50e9b94c746 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/Type.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.Type + +class Type extends TypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/TypeAliasType.qll b/swift/ql/lib/codeql/swift/elements/type/TypeAliasType.qll new file mode 100644 index 00000000000..beac2b51732 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/TypeAliasType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.TypeAliasType + +class TypeAliasType extends TypeAliasTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/TypeVariableType.qll b/swift/ql/lib/codeql/swift/elements/type/TypeVariableType.qll new file mode 100644 index 00000000000..51818fbfbf2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/TypeVariableType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.TypeVariableType + +class TypeVariableType extends TypeVariableTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnarySyntaxSugarType.qll b/swift/ql/lib/codeql/swift/elements/type/UnarySyntaxSugarType.qll new file mode 100644 index 00000000000..a512e4ecf1a --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnarySyntaxSugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnarySyntaxSugarType + +class UnarySyntaxSugarType extends UnarySyntaxSugarTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnboundGenericType.qll b/swift/ql/lib/codeql/swift/elements/type/UnboundGenericType.qll new file mode 100644 index 00000000000..2cf2b99f791 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnboundGenericType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnboundGenericType + +class UnboundGenericType extends UnboundGenericTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnknownType.qll b/swift/ql/lib/codeql/swift/elements/type/UnknownType.qll new file mode 100644 index 00000000000..b869a3b2f61 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnknownType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnknownType + +class UnknownType extends UnknownTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnmanagedStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/UnmanagedStorageType.qll new file mode 100644 index 00000000000..c0161b07fc0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnmanagedStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnmanagedStorageType + +class UnmanagedStorageType extends UnmanagedStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnownedStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/UnownedStorageType.qll new file mode 100644 index 00000000000..fa7fb75edc1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnownedStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnownedStorageType + +class UnownedStorageType extends UnownedStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/UnresolvedType.qll b/swift/ql/lib/codeql/swift/elements/type/UnresolvedType.qll new file mode 100644 index 00000000000..4f8a63b7563 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/UnresolvedType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.UnresolvedType + +class UnresolvedType extends UnresolvedTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/VariadicSequenceType.qll b/swift/ql/lib/codeql/swift/elements/type/VariadicSequenceType.qll new file mode 100644 index 00000000000..59f64bf9f33 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/VariadicSequenceType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.VariadicSequenceType + +class VariadicSequenceType extends VariadicSequenceTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/type/WeakStorageType.qll b/swift/ql/lib/codeql/swift/elements/type/WeakStorageType.qll new file mode 100644 index 00000000000..381ddf57da7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/type/WeakStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.type.WeakStorageType + +class WeakStorageType extends WeakStorageTypeBase { } diff --git a/swift/ql/lib/codeql/swift/elements/typerepr/TypeRepr.qll b/swift/ql/lib/codeql/swift/elements/typerepr/TypeRepr.qll new file mode 100644 index 00000000000..4a4ea87833e --- /dev/null +++ b/swift/ql/lib/codeql/swift/elements/typerepr/TypeRepr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py, remove this comment if you wish to edit this file +private import codeql.swift.generated.typerepr.TypeRepr + +class TypeRepr extends TypeReprBase { } diff --git a/swift/ql/lib/codeql/swift/generated/AstNode.qll b/swift/ql/lib/codeql/swift/generated/AstNode.qll new file mode 100644 index 00000000000..26734294d75 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/AstNode.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Locatable + +class AstNodeBase extends @ast_node, Locatable { } diff --git a/swift/ql/lib/codeql/swift/generated/Element.qll b/swift/ql/lib/codeql/swift/generated/Element.qll new file mode 100644 index 00000000000..fcb8e68c86f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/Element.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +class ElementBase extends @element { + string toString() { none() } // overridden by subclasses + + ElementBase getResolveStep() { none() } // overridden by subclasses + + ElementBase resolve() { + not exists(getResolveStep()) and result = this + or + result = getResolveStep().resolve() + } +} diff --git a/swift/ql/lib/codeql/swift/generated/File.qll b/swift/ql/lib/codeql/swift/generated/File.qll new file mode 100644 index 00000000000..9c431346952 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/File.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element + +class FileBase extends @file, Element { + override string toString() { result = "File" } + + string getName() { files(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/Locatable.qll b/swift/ql/lib/codeql/swift/generated/Locatable.qll new file mode 100644 index 00000000000..b24cfdb71f3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/Locatable.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element +import codeql.swift.elements.Location + +class LocatableBase extends @locatable, Element { + Location getLocation() { + exists(Location x | + locatables(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/Location.qll b/swift/ql/lib/codeql/swift/generated/Location.qll new file mode 100644 index 00000000000..a12d4238c3e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/Location.qll @@ -0,0 +1,22 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element +import codeql.swift.elements.File + +class LocationBase extends @location, Element { + override string toString() { result = "Location" } + + File getFile() { + exists(File x | + locations(this, x, _, _, _, _) and + result = x.resolve() + ) + } + + int getBeginLine() { locations(this, _, result, _, _, _) } + + int getBeginColumn() { locations(this, _, _, result, _, _) } + + int getEndLine() { locations(this, _, _, _, result, _) } + + int getEndColumn() { locations(this, _, _, _, _, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/UnknownAstNode.qll b/swift/ql/lib/codeql/swift/generated/UnknownAstNode.qll new file mode 100644 index 00000000000..657db267a96 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/UnknownAstNode.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.pattern.Pattern +import codeql.swift.elements.stmt.Stmt +import codeql.swift.elements.typerepr.TypeRepr + +class UnknownAstNodeBase extends @unknown_ast_node, Decl, Expr, Pattern, Stmt, TypeRepr { + override string toString() { result = "UnknownAstNode" } + + string getName() { unknown_ast_nodes(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/AbstractFunctionDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/AbstractFunctionDecl.qll new file mode 100644 index 00000000000..26e65473f13 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/AbstractFunctionDecl.qll @@ -0,0 +1,27 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.decl.GenericContext +import codeql.swift.elements.decl.ParamDecl +import codeql.swift.elements.decl.ValueDecl + +class AbstractFunctionDeclBase extends @abstract_function_decl, GenericContext, ValueDecl { + string getName() { abstract_function_decls(this, result) } + + BraceStmt getBody() { + exists(BraceStmt x | + abstract_function_decl_bodies(this, x) and + result = x.resolve() + ) + } + + ParamDecl getParam(int index) { + exists(ParamDecl x | + abstract_function_decl_params(this, index, x) and + result = x.resolve() + ) + } + + ParamDecl getAParam() { result = getParam(_) } + + int getNumberOfParams() { result = count(getAParam()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/AbstractStorageDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/AbstractStorageDecl.qll new file mode 100644 index 00000000000..245bf023223 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/AbstractStorageDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.ValueDecl + +class AbstractStorageDeclBase extends @abstract_storage_decl, ValueDecl { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/AbstractTypeParamDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/AbstractTypeParamDecl.qll new file mode 100644 index 00000000000..f96f64de9f1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/AbstractTypeParamDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.TypeDecl + +class AbstractTypeParamDeclBase extends @abstract_type_param_decl, TypeDecl { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/AccessorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/AccessorDecl.qll new file mode 100644 index 00000000000..6be785a6ece --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/AccessorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.FuncDecl + +class AccessorDeclBase extends @accessor_decl, FuncDecl { + override string toString() { result = "AccessorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/AssociatedTypeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/AssociatedTypeDecl.qll new file mode 100644 index 00000000000..fbcfb20c3ed --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/AssociatedTypeDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractTypeParamDecl + +class AssociatedTypeDeclBase extends @associated_type_decl, AbstractTypeParamDecl { + override string toString() { result = "AssociatedTypeDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ClassDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ClassDecl.qll new file mode 100644 index 00000000000..96a9cc587c5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ClassDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.NominalTypeDecl + +class ClassDeclBase extends @class_decl, NominalTypeDecl { + override string toString() { result = "ClassDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ConcreteFuncDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ConcreteFuncDecl.qll new file mode 100644 index 00000000000..b46b4745537 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ConcreteFuncDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.FuncDecl + +class ConcreteFuncDeclBase extends @concrete_func_decl, FuncDecl { + override string toString() { result = "ConcreteFuncDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll new file mode 100644 index 00000000000..f94ee9cad28 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ConcreteVarDecl.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.VarDecl + +class ConcreteVarDeclBase extends @concrete_var_decl, VarDecl { + override string toString() { result = "ConcreteVarDecl" } + + int getIntroducerInt() { concrete_var_decls(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ConstructorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ConstructorDecl.qll new file mode 100644 index 00000000000..cc73243e409 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ConstructorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractFunctionDecl + +class ConstructorDeclBase extends @constructor_decl, AbstractFunctionDecl { + override string toString() { result = "ConstructorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/Decl.qll b/swift/ql/lib/codeql/swift/generated/decl/Decl.qll new file mode 100644 index 00000000000..8bf5c9a15a4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/Decl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode + +class DeclBase extends @decl, AstNode { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/DestructorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/DestructorDecl.qll new file mode 100644 index 00000000000..3223ab2d196 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/DestructorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractFunctionDecl + +class DestructorDeclBase extends @destructor_decl, AbstractFunctionDecl { + override string toString() { result = "DestructorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/EnumCaseDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/EnumCaseDecl.qll new file mode 100644 index 00000000000..ef87a7a2de6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/EnumCaseDecl.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.decl.EnumElementDecl + +class EnumCaseDeclBase extends @enum_case_decl, Decl { + override string toString() { result = "EnumCaseDecl" } + + EnumElementDecl getElement(int index) { + exists(EnumElementDecl x | + enum_case_decl_elements(this, index, x) and + result = x.resolve() + ) + } + + EnumElementDecl getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/EnumDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/EnumDecl.qll new file mode 100644 index 00000000000..e1c78ecadd0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/EnumDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.NominalTypeDecl + +class EnumDeclBase extends @enum_decl, NominalTypeDecl { + override string toString() { result = "EnumDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/EnumElementDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/EnumElementDecl.qll new file mode 100644 index 00000000000..ace35b89318 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/EnumElementDecl.qll @@ -0,0 +1,20 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.ParamDecl +import codeql.swift.elements.decl.ValueDecl + +class EnumElementDeclBase extends @enum_element_decl, ValueDecl { + override string toString() { result = "EnumElementDecl" } + + string getName() { enum_element_decls(this, result) } + + ParamDecl getParam(int index) { + exists(ParamDecl x | + enum_element_decl_params(this, index, x) and + result = x.resolve() + ) + } + + ParamDecl getAParam() { result = getParam(_) } + + int getNumberOfParams() { result = count(getAParam()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ExtensionDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ExtensionDecl.qll new file mode 100644 index 00000000000..653f791ec76 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ExtensionDecl.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.decl.GenericContext +import codeql.swift.elements.decl.IterableDeclContext + +class ExtensionDeclBase extends @extension_decl, Decl, GenericContext, IterableDeclContext { + override string toString() { result = "ExtensionDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/FuncDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/FuncDecl.qll new file mode 100644 index 00000000000..c7b789b7442 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/FuncDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractFunctionDecl + +class FuncDeclBase extends @func_decl, AbstractFunctionDecl { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/GenericContext.qll b/swift/ql/lib/codeql/swift/generated/decl/GenericContext.qll new file mode 100644 index 00000000000..3a474400f5c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/GenericContext.qll @@ -0,0 +1,16 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element +import codeql.swift.elements.decl.GenericTypeParamDecl + +class GenericContextBase extends @generic_context, Element { + GenericTypeParamDecl getGenericTypeParam(int index) { + exists(GenericTypeParamDecl x | + generic_context_generic_type_params(this, index, x) and + result = x.resolve() + ) + } + + GenericTypeParamDecl getAGenericTypeParam() { result = getGenericTypeParam(_) } + + int getNumberOfGenericTypeParams() { result = count(getAGenericTypeParam()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/GenericTypeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/GenericTypeDecl.qll new file mode 100644 index 00000000000..98f42820f79 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/GenericTypeDecl.qll @@ -0,0 +1,5 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.GenericContext +import codeql.swift.elements.decl.TypeDecl + +class GenericTypeDeclBase extends @generic_type_decl, GenericContext, TypeDecl { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/GenericTypeParamDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/GenericTypeParamDecl.qll new file mode 100644 index 00000000000..effe651ea5e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/GenericTypeParamDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractTypeParamDecl + +class GenericTypeParamDeclBase extends @generic_type_param_decl, AbstractTypeParamDecl { + override string toString() { result = "GenericTypeParamDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/IfConfigDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/IfConfigDecl.qll new file mode 100644 index 00000000000..6d53786e2c3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/IfConfigDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class IfConfigDeclBase extends @if_config_decl, Decl { + override string toString() { result = "IfConfigDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ImportDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ImportDecl.qll new file mode 100644 index 00000000000..53b2e7d9804 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ImportDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class ImportDeclBase extends @import_decl, Decl { + override string toString() { result = "ImportDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/InfixOperatorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/InfixOperatorDecl.qll new file mode 100644 index 00000000000..4c91bed5227 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/InfixOperatorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.OperatorDecl + +class InfixOperatorDeclBase extends @infix_operator_decl, OperatorDecl { + override string toString() { result = "InfixOperatorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/IterableDeclContext.qll b/swift/ql/lib/codeql/swift/generated/decl/IterableDeclContext.qll new file mode 100644 index 00000000000..b389c8588d4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/IterableDeclContext.qll @@ -0,0 +1,16 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.Element + +class IterableDeclContextBase extends @iterable_decl_context, Element { + Decl getMember(int index) { + exists(Decl x | + iterable_decl_context_members(this, index, x) and + result = x.resolve() + ) + } + + Decl getAMember() { result = getMember(_) } + + int getNumberOfMembers() { result = count(getAMember()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/MissingMemberDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/MissingMemberDecl.qll new file mode 100644 index 00000000000..19131ef4d9a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/MissingMemberDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class MissingMemberDeclBase extends @missing_member_decl, Decl { + override string toString() { result = "MissingMemberDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ModuleDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ModuleDecl.qll new file mode 100644 index 00000000000..f9337f91618 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ModuleDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.TypeDecl + +class ModuleDeclBase extends @module_decl, TypeDecl { + override string toString() { result = "ModuleDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/NominalTypeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/NominalTypeDecl.qll new file mode 100644 index 00000000000..4924bb32a87 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/NominalTypeDecl.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.GenericTypeDecl +import codeql.swift.elements.decl.IterableDeclContext +import codeql.swift.elements.type.Type + +class NominalTypeDeclBase extends @nominal_type_decl, GenericTypeDecl, IterableDeclContext { + Type getType() { + exists(Type x | + nominal_type_decls(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/OpaqueTypeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/OpaqueTypeDecl.qll new file mode 100644 index 00000000000..5e1e176aa38 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/OpaqueTypeDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.GenericTypeDecl + +class OpaqueTypeDeclBase extends @opaque_type_decl, GenericTypeDecl { + override string toString() { result = "OpaqueTypeDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/OperatorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/OperatorDecl.qll new file mode 100644 index 00000000000..c81e359cbe4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/OperatorDecl.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class OperatorDeclBase extends @operator_decl, Decl { } diff --git a/swift/ql/lib/codeql/swift/generated/decl/ParamDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ParamDecl.qll new file mode 100644 index 00000000000..e2f3b0a8d49 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ParamDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.VarDecl + +class ParamDeclBase extends @param_decl, VarDecl { + override string toString() { result = "ParamDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/PatternBindingDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/PatternBindingDecl.qll new file mode 100644 index 00000000000..fd83d330670 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/PatternBindingDecl.qll @@ -0,0 +1,30 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.pattern.Pattern + +class PatternBindingDeclBase extends @pattern_binding_decl, Decl { + override string toString() { result = "PatternBindingDecl" } + + Expr getInit(int index) { + exists(Expr x | + pattern_binding_decl_inits(this, index, x) and + result = x.resolve() + ) + } + + Expr getAnInit() { result = getInit(_) } + + int getNumberOfInits() { result = count(getAnInit()) } + + Pattern getPattern(int index) { + exists(Pattern x | + pattern_binding_decl_patterns(this, index, x) and + result = x.resolve() + ) + } + + Pattern getAPattern() { result = getPattern(_) } + + int getNumberOfPatterns() { result = count(getAPattern()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/PostfixOperatorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/PostfixOperatorDecl.qll new file mode 100644 index 00000000000..94f709fa1b4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/PostfixOperatorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.OperatorDecl + +class PostfixOperatorDeclBase extends @postfix_operator_decl, OperatorDecl { + override string toString() { result = "PostfixOperatorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/PoundDiagnosticDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/PoundDiagnosticDecl.qll new file mode 100644 index 00000000000..af004769c83 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/PoundDiagnosticDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class PoundDiagnosticDeclBase extends @pound_diagnostic_decl, Decl { + override string toString() { result = "PoundDiagnosticDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/PrecedenceGroupDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/PrecedenceGroupDecl.qll new file mode 100644 index 00000000000..2da8c646cf0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/PrecedenceGroupDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl + +class PrecedenceGroupDeclBase extends @precedence_group_decl, Decl { + override string toString() { result = "PrecedenceGroupDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/PrefixOperatorDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/PrefixOperatorDecl.qll new file mode 100644 index 00000000000..9620dcb1d65 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/PrefixOperatorDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.OperatorDecl + +class PrefixOperatorDeclBase extends @prefix_operator_decl, OperatorDecl { + override string toString() { result = "PrefixOperatorDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ProtocolDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ProtocolDecl.qll new file mode 100644 index 00000000000..322a29acd6b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ProtocolDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.NominalTypeDecl + +class ProtocolDeclBase extends @protocol_decl, NominalTypeDecl { + override string toString() { result = "ProtocolDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/StructDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/StructDecl.qll new file mode 100644 index 00000000000..65459bf93c2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/StructDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.NominalTypeDecl + +class StructDeclBase extends @struct_decl, NominalTypeDecl { + override string toString() { result = "StructDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/SubscriptDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/SubscriptDecl.qll new file mode 100644 index 00000000000..b84abbec539 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/SubscriptDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractStorageDecl + +class SubscriptDeclBase extends @subscript_decl, AbstractStorageDecl { + override string toString() { result = "SubscriptDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/TopLevelCodeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/TopLevelCodeDecl.qll new file mode 100644 index 00000000000..9d460066513 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/TopLevelCodeDecl.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.decl.Decl + +class TopLevelCodeDeclBase extends @top_level_code_decl, Decl { + override string toString() { result = "TopLevelCodeDecl" } + + BraceStmt getBody() { + exists(BraceStmt x | + top_level_code_decls(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/TypeAliasDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/TypeAliasDecl.qll new file mode 100644 index 00000000000..d4d3573614e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/TypeAliasDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.GenericTypeDecl + +class TypeAliasDeclBase extends @type_alias_decl, GenericTypeDecl { + override string toString() { result = "TypeAliasDecl" } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/TypeDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/TypeDecl.qll new file mode 100644 index 00000000000..89ff09d7511 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/TypeDecl.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.ValueDecl + +class TypeDeclBase extends @type_decl, ValueDecl { + string getName() { type_decls(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/ValueDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/ValueDecl.qll new file mode 100644 index 00000000000..a9850e1c2a8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/ValueDecl.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.type.Type + +class ValueDeclBase extends @value_decl, Decl { + Type getInterfaceType() { + exists(Type x | + value_decls(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/decl/VarDecl.qll b/swift/ql/lib/codeql/swift/generated/decl/VarDecl.qll new file mode 100644 index 00000000000..1ecd28c384a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/decl/VarDecl.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.AbstractStorageDecl +import codeql.swift.elements.type.Type + +class VarDeclBase extends @var_decl, AbstractStorageDecl { + string getName() { var_decls(this, result, _) } + + Type getType() { + exists(Type x | + var_decls(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AbstractClosureExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AbstractClosureExpr.qll new file mode 100644 index 00000000000..e5e568565ff --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AbstractClosureExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class AbstractClosureExprBase extends @abstract_closure_expr, Expr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/AnyHashableErasureExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AnyHashableErasureExpr.qll new file mode 100644 index 00000000000..0c9bef9b580 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AnyHashableErasureExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class AnyHashableErasureExprBase extends @any_hashable_erasure_expr, ImplicitConversionExpr { + override string toString() { result = "AnyHashableErasureExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AnyTryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AnyTryExpr.qll new file mode 100644 index 00000000000..47a8b2505d9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AnyTryExpr.qll @@ -0,0 +1,11 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class AnyTryExprBase extends @any_try_expr, Expr { + Expr getSubExpr() { + exists(Expr x | + any_try_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AppliedPropertyWrapperExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AppliedPropertyWrapperExpr.qll new file mode 100644 index 00000000000..9aec2e17c3b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AppliedPropertyWrapperExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class AppliedPropertyWrapperExprBase extends @applied_property_wrapper_expr, Expr { + override string toString() { result = "AppliedPropertyWrapperExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ApplyExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ApplyExpr.qll new file mode 100644 index 00000000000..d9416bfa5e7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ApplyExpr.qll @@ -0,0 +1,23 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Argument +import codeql.swift.elements.expr.Expr + +class ApplyExprBase extends @apply_expr, Expr { + Expr getFunction() { + exists(Expr x | + apply_exprs(this, x) and + result = x.resolve() + ) + } + + Argument getArgument(int index) { + exists(Argument x | + apply_expr_arguments(this, index, x) and + result = x.resolve() + ) + } + + Argument getAnArgument() { result = getArgument(_) } + + int getNumberOfArguments() { result = count(getAnArgument()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ArchetypeToSuperExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ArchetypeToSuperExpr.qll new file mode 100644 index 00000000000..51bcd473f69 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ArchetypeToSuperExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ArchetypeToSuperExprBase extends @archetype_to_super_expr, ImplicitConversionExpr { + override string toString() { result = "ArchetypeToSuperExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/Argument.qll b/swift/ql/lib/codeql/swift/generated/expr/Argument.qll new file mode 100644 index 00000000000..e64f57b13f3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/Argument.qll @@ -0,0 +1,16 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element +import codeql.swift.elements.expr.Expr + +class ArgumentBase extends @argument, Element { + override string toString() { result = "Argument" } + + string getLabel() { arguments(this, result, _) } + + Expr getExpr() { + exists(Expr x | + arguments(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ArrayExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ArrayExpr.qll new file mode 100644 index 00000000000..74af871bc6b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ArrayExpr.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.CollectionExpr +import codeql.swift.elements.expr.Expr + +class ArrayExprBase extends @array_expr, CollectionExpr { + override string toString() { result = "ArrayExpr" } + + Expr getElement(int index) { + exists(Expr x | + array_expr_elements(this, index, x) and + result = x.resolve() + ) + } + + Expr getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ArrayToPointerExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ArrayToPointerExpr.qll new file mode 100644 index 00000000000..9eb43a5eafe --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ArrayToPointerExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ArrayToPointerExprBase extends @array_to_pointer_expr, ImplicitConversionExpr { + override string toString() { result = "ArrayToPointerExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ArrowExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ArrowExpr.qll new file mode 100644 index 00000000000..a42bf380eee --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ArrowExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ArrowExprBase extends @arrow_expr, Expr { + override string toString() { result = "ArrowExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AssignExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AssignExpr.qll new file mode 100644 index 00000000000..d5c4c81a42a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AssignExpr.qll @@ -0,0 +1,20 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class AssignExprBase extends @assign_expr, Expr { + override string toString() { result = "AssignExpr" } + + Expr getDest() { + exists(Expr x | + assign_exprs(this, x, _) and + result = x.resolve() + ) + } + + Expr getSource() { + exists(Expr x | + assign_exprs(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AutoClosureExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AutoClosureExpr.qll new file mode 100644 index 00000000000..f8cff41b56f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AutoClosureExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AbstractClosureExpr + +class AutoClosureExprBase extends @auto_closure_expr, AbstractClosureExpr { + override string toString() { result = "AutoClosureExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/AwaitExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/AwaitExpr.qll new file mode 100644 index 00000000000..73a79322d30 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/AwaitExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.IdentityExpr + +class AwaitExprBase extends @await_expr, IdentityExpr { + override string toString() { result = "AwaitExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BinaryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BinaryExpr.qll new file mode 100644 index 00000000000..f30bfc9b2cd --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BinaryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ApplyExpr + +class BinaryExprBase extends @binary_expr, ApplyExpr { + override string toString() { result = "BinaryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BindOptionalExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BindOptionalExpr.qll new file mode 100644 index 00000000000..646e5d1fc88 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BindOptionalExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class BindOptionalExprBase extends @bind_optional_expr, Expr { + override string toString() { result = "BindOptionalExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BooleanLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BooleanLiteralExpr.qll new file mode 100644 index 00000000000..9eb96b658bb --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BooleanLiteralExpr.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.BuiltinLiteralExpr + +class BooleanLiteralExprBase extends @boolean_literal_expr, BuiltinLiteralExpr { + override string toString() { result = "BooleanLiteralExpr" } + + boolean getValue() { boolean_literal_exprs(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BridgeFromObjCExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BridgeFromObjCExpr.qll new file mode 100644 index 00000000000..0494883b44f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BridgeFromObjCExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class BridgeFromObjCExprBase extends @bridge_from_obj_c_expr, ImplicitConversionExpr { + override string toString() { result = "BridgeFromObjCExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BridgeToObjCExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BridgeToObjCExpr.qll new file mode 100644 index 00000000000..c880a148dab --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BridgeToObjCExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class BridgeToObjCExprBase extends @bridge_to_obj_c_expr, ImplicitConversionExpr { + override string toString() { result = "BridgeToObjCExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/BuiltinLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/BuiltinLiteralExpr.qll new file mode 100644 index 00000000000..73d2f125b66 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/BuiltinLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.LiteralExpr + +class BuiltinLiteralExprBase extends @builtin_literal_expr, LiteralExpr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/CallExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CallExpr.qll new file mode 100644 index 00000000000..3fa6f1eef40 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CallExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ApplyExpr + +class CallExprBase extends @call_expr, ApplyExpr { + override string toString() { result = "CallExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CaptureListExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CaptureListExpr.qll new file mode 100644 index 00000000000..5381031853f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CaptureListExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class CaptureListExprBase extends @capture_list_expr, Expr { + override string toString() { result = "CaptureListExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CheckedCastExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CheckedCastExpr.qll new file mode 100644 index 00000000000..9ba4677ff44 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CheckedCastExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ExplicitCastExpr + +class CheckedCastExprBase extends @checked_cast_expr, ExplicitCastExpr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/ClassMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ClassMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..b06e736ec5b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ClassMetatypeToObjectExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ClassMetatypeToObjectExprBase extends @class_metatype_to_object_expr, ImplicitConversionExpr { + override string toString() { result = "ClassMetatypeToObjectExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ClosureExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ClosureExpr.qll new file mode 100644 index 00000000000..97439eb8316 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ClosureExpr.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AbstractClosureExpr +import codeql.swift.elements.stmt.BraceStmt + +class ClosureExprBase extends @closure_expr, AbstractClosureExpr { + override string toString() { result = "ClosureExpr" } + + BraceStmt getBody() { + exists(BraceStmt x | + closure_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CodeCompletionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CodeCompletionExpr.qll new file mode 100644 index 00000000000..31653297bde --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CodeCompletionExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class CodeCompletionExprBase extends @code_completion_expr, Expr { + override string toString() { result = "CodeCompletionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CoerceExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CoerceExpr.qll new file mode 100644 index 00000000000..4d7df95eb6b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CoerceExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ExplicitCastExpr + +class CoerceExprBase extends @coerce_expr, ExplicitCastExpr { + override string toString() { result = "CoerceExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CollectionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CollectionExpr.qll new file mode 100644 index 00000000000..2babcfc8fb3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CollectionExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class CollectionExprBase extends @collection_expr, Expr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/CollectionUpcastConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CollectionUpcastConversionExpr.qll new file mode 100644 index 00000000000..434261d6fc2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CollectionUpcastConversionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class CollectionUpcastConversionExprBase extends @collection_upcast_conversion_expr, + ImplicitConversionExpr { + override string toString() { result = "CollectionUpcastConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ConditionalBridgeFromObjCExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ConditionalBridgeFromObjCExpr.qll new file mode 100644 index 00000000000..dfdde979082 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ConditionalBridgeFromObjCExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ConditionalBridgeFromObjCExprBase extends @conditional_bridge_from_obj_c_expr, + ImplicitConversionExpr { + override string toString() { result = "ConditionalBridgeFromObjCExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ConditionalCheckedCastExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ConditionalCheckedCastExpr.qll new file mode 100644 index 00000000000..3a6ecc63714 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ConditionalCheckedCastExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.CheckedCastExpr + +class ConditionalCheckedCastExprBase extends @conditional_checked_cast_expr, CheckedCastExpr { + override string toString() { result = "ConditionalCheckedCastExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ConstructorRefCallExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ConstructorRefCallExpr.qll new file mode 100644 index 00000000000..cd573bd87d6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ConstructorRefCallExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.SelfApplyExpr + +class ConstructorRefCallExprBase extends @constructor_ref_call_expr, SelfApplyExpr { + override string toString() { result = "ConstructorRefCallExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CovariantFunctionConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CovariantFunctionConversionExpr.qll new file mode 100644 index 00000000000..f641ee17558 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CovariantFunctionConversionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class CovariantFunctionConversionExprBase extends @covariant_function_conversion_expr, + ImplicitConversionExpr { + override string toString() { result = "CovariantFunctionConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/CovariantReturnConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/CovariantReturnConversionExpr.qll new file mode 100644 index 00000000000..79b86e32eec --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/CovariantReturnConversionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class CovariantReturnConversionExprBase extends @covariant_return_conversion_expr, + ImplicitConversionExpr { + override string toString() { result = "CovariantReturnConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DeclRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DeclRefExpr.qll new file mode 100644 index 00000000000..08816d46d36 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DeclRefExpr.qll @@ -0,0 +1,26 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.type.Type + +class DeclRefExprBase extends @decl_ref_expr, Expr { + override string toString() { result = "DeclRefExpr" } + + Decl getDecl() { + exists(Decl x | + decl_ref_exprs(this, x) and + result = x.resolve() + ) + } + + Type getReplacementType(int index) { + exists(Type x | + decl_ref_expr_replacement_types(this, index, x) and + result = x.resolve() + ) + } + + Type getAReplacementType() { result = getReplacementType(_) } + + int getNumberOfReplacementTypes() { result = count(getAReplacementType()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DefaultArgumentExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DefaultArgumentExpr.qll new file mode 100644 index 00000000000..a4954a6214b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DefaultArgumentExpr.qll @@ -0,0 +1,23 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.decl.ParamDecl + +class DefaultArgumentExprBase extends @default_argument_expr, Expr { + override string toString() { result = "DefaultArgumentExpr" } + + ParamDecl getParamDecl() { + exists(ParamDecl x | + default_argument_exprs(this, x, _) and + result = x.resolve() + ) + } + + int getParamIndex() { default_argument_exprs(this, _, result) } + + Expr getCallerSideDefault() { + exists(Expr x | + default_argument_expr_caller_side_defaults(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DerivedToBaseExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DerivedToBaseExpr.qll new file mode 100644 index 00000000000..627944b988c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DerivedToBaseExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class DerivedToBaseExprBase extends @derived_to_base_expr, ImplicitConversionExpr { + override string toString() { result = "DerivedToBaseExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DestructureTupleExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DestructureTupleExpr.qll new file mode 100644 index 00000000000..7118ab2f2a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DestructureTupleExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class DestructureTupleExprBase extends @destructure_tuple_expr, ImplicitConversionExpr { + override string toString() { result = "DestructureTupleExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DictionaryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DictionaryExpr.qll new file mode 100644 index 00000000000..8e9e896db3a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DictionaryExpr.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.CollectionExpr +import codeql.swift.elements.expr.Expr + +class DictionaryExprBase extends @dictionary_expr, CollectionExpr { + override string toString() { result = "DictionaryExpr" } + + Expr getElement(int index) { + exists(Expr x | + dictionary_expr_elements(this, index, x) and + result = x.resolve() + ) + } + + Expr getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExpr.qll new file mode 100644 index 00000000000..47e6c0235aa --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class DifferentiableFunctionExprBase extends @differentiable_function_expr, ImplicitConversionExpr { + override string toString() { result = "DifferentiableFunctionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExtractOriginalExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExtractOriginalExpr.qll new file mode 100644 index 00000000000..c28b0947cbd --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DifferentiableFunctionExtractOriginalExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class DifferentiableFunctionExtractOriginalExprBase extends @differentiable_function_extract_original_expr, + ImplicitConversionExpr { + override string toString() { result = "DifferentiableFunctionExtractOriginalExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DiscardAssignmentExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DiscardAssignmentExpr.qll new file mode 100644 index 00000000000..5d067a0450a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DiscardAssignmentExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class DiscardAssignmentExprBase extends @discard_assignment_expr, Expr { + override string toString() { result = "DiscardAssignmentExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DotSelfExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DotSelfExpr.qll new file mode 100644 index 00000000000..8ade301e4c6 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DotSelfExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.IdentityExpr + +class DotSelfExprBase extends @dot_self_expr, IdentityExpr { + override string toString() { result = "DotSelfExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxBaseIgnoredExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxBaseIgnoredExpr.qll new file mode 100644 index 00000000000..b429b2b13ce --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxBaseIgnoredExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class DotSyntaxBaseIgnoredExprBase extends @dot_syntax_base_ignored_expr, Expr { + override string toString() { result = "DotSyntaxBaseIgnoredExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxCallExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxCallExpr.qll new file mode 100644 index 00000000000..34eae4c9878 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DotSyntaxCallExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.SelfApplyExpr + +class DotSyntaxCallExprBase extends @dot_syntax_call_expr, SelfApplyExpr { + override string toString() { result = "DotSyntaxCallExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DynamicLookupExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DynamicLookupExpr.qll new file mode 100644 index 00000000000..8ca09d05317 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DynamicLookupExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.LookupExpr + +class DynamicLookupExprBase extends @dynamic_lookup_expr, LookupExpr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/DynamicMemberRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DynamicMemberRefExpr.qll new file mode 100644 index 00000000000..b7e0bcd60ef --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DynamicMemberRefExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.DynamicLookupExpr + +class DynamicMemberRefExprBase extends @dynamic_member_ref_expr, DynamicLookupExpr { + override string toString() { result = "DynamicMemberRefExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DynamicSubscriptExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DynamicSubscriptExpr.qll new file mode 100644 index 00000000000..9b6e61edd1e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DynamicSubscriptExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.DynamicLookupExpr + +class DynamicSubscriptExprBase extends @dynamic_subscript_expr, DynamicLookupExpr { + override string toString() { result = "DynamicSubscriptExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/DynamicTypeExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/DynamicTypeExpr.qll new file mode 100644 index 00000000000..002a60965fa --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/DynamicTypeExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class DynamicTypeExprBase extends @dynamic_type_expr, Expr { + override string toString() { result = "DynamicTypeExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/EditorPlaceholderExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/EditorPlaceholderExpr.qll new file mode 100644 index 00000000000..29018732f81 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/EditorPlaceholderExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class EditorPlaceholderExprBase extends @editor_placeholder_expr, Expr { + override string toString() { result = "EditorPlaceholderExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/EnumIsCaseExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/EnumIsCaseExpr.qll new file mode 100644 index 00000000000..c90ca7cd930 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/EnumIsCaseExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class EnumIsCaseExprBase extends @enum_is_case_expr, Expr { + override string toString() { result = "EnumIsCaseExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ErasureExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ErasureExpr.qll new file mode 100644 index 00000000000..68eeed8a6a1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ErasureExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ErasureExprBase extends @erasure_expr, ImplicitConversionExpr { + override string toString() { result = "ErasureExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ErrorExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ErrorExpr.qll new file mode 100644 index 00000000000..b364ba3662f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ErrorExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ErrorExprBase extends @error_expr, Expr { + override string toString() { result = "ErrorExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ExistentialMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ExistentialMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..def4df70dc8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ExistentialMetatypeToObjectExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ExistentialMetatypeToObjectExprBase extends @existential_metatype_to_object_expr, + ImplicitConversionExpr { + override string toString() { result = "ExistentialMetatypeToObjectExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ExplicitCastExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ExplicitCastExpr.qll new file mode 100644 index 00000000000..305be5338a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ExplicitCastExpr.qll @@ -0,0 +1,11 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ExplicitCastExprBase extends @explicit_cast_expr, Expr { + Expr getSubExpr() { + exists(Expr x | + explicit_cast_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/Expr.qll b/swift/ql/lib/codeql/swift/generated/expr/Expr.qll new file mode 100644 index 00000000000..77e18eecc4f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/Expr.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode +import codeql.swift.elements.type.Type + +class ExprBase extends @expr, AstNode { + Type getType() { + exists(Type x | + expr_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/FloatLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/FloatLiteralExpr.qll new file mode 100644 index 00000000000..d5a75020b59 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/FloatLiteralExpr.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.NumberLiteralExpr + +class FloatLiteralExprBase extends @float_literal_expr, NumberLiteralExpr { + override string toString() { result = "FloatLiteralExpr" } + + string getStringValue() { float_literal_exprs(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ForceTryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ForceTryExpr.qll new file mode 100644 index 00000000000..6e79e8b9d0c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ForceTryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AnyTryExpr + +class ForceTryExprBase extends @force_try_expr, AnyTryExpr { + override string toString() { result = "ForceTryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ForceValueExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ForceValueExpr.qll new file mode 100644 index 00000000000..9740fce5b07 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ForceValueExpr.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ForceValueExprBase extends @force_value_expr, Expr { + override string toString() { result = "ForceValueExpr" } + + Expr getSubExpr() { + exists(Expr x | + force_value_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ForcedCheckedCastExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ForcedCheckedCastExpr.qll new file mode 100644 index 00000000000..62712596d93 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ForcedCheckedCastExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.CheckedCastExpr + +class ForcedCheckedCastExprBase extends @forced_checked_cast_expr, CheckedCastExpr { + override string toString() { result = "ForcedCheckedCastExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ForeignObjectConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ForeignObjectConversionExpr.qll new file mode 100644 index 00000000000..1a04dc63a00 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ForeignObjectConversionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ForeignObjectConversionExprBase extends @foreign_object_conversion_expr, + ImplicitConversionExpr { + override string toString() { result = "ForeignObjectConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/FunctionConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/FunctionConversionExpr.qll new file mode 100644 index 00000000000..cefeacb56c9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/FunctionConversionExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class FunctionConversionExprBase extends @function_conversion_expr, ImplicitConversionExpr { + override string toString() { result = "FunctionConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/IdentityExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/IdentityExpr.qll new file mode 100644 index 00000000000..4047ebfde78 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/IdentityExpr.qll @@ -0,0 +1,11 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class IdentityExprBase extends @identity_expr, Expr { + Expr getSubExpr() { + exists(Expr x | + identity_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/IfExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/IfExpr.qll new file mode 100644 index 00000000000..4f927123e70 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/IfExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class IfExprBase extends @if_expr, Expr { + override string toString() { result = "IfExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ImplicitConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ImplicitConversionExpr.qll new file mode 100644 index 00000000000..75d4a9337fa --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ImplicitConversionExpr.qll @@ -0,0 +1,11 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ImplicitConversionExprBase extends @implicit_conversion_expr, Expr { + Expr getSubExpr() { + exists(Expr x | + implicit_conversion_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/InOutExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/InOutExpr.qll new file mode 100644 index 00000000000..9d8e2f89c5b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/InOutExpr.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class InOutExprBase extends @in_out_expr, Expr { + override string toString() { result = "InOutExpr" } + + Expr getSubExpr() { + exists(Expr x | + in_out_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/InOutToPointerExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/InOutToPointerExpr.qll new file mode 100644 index 00000000000..c1c4775f0dc --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/InOutToPointerExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class InOutToPointerExprBase extends @in_out_to_pointer_expr, ImplicitConversionExpr { + override string toString() { result = "InOutToPointerExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/InjectIntoOptionalExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/InjectIntoOptionalExpr.qll new file mode 100644 index 00000000000..98186826917 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/InjectIntoOptionalExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class InjectIntoOptionalExprBase extends @inject_into_optional_expr, ImplicitConversionExpr { + override string toString() { result = "InjectIntoOptionalExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/IntegerLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/IntegerLiteralExpr.qll new file mode 100644 index 00000000000..61e309fc20c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/IntegerLiteralExpr.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.NumberLiteralExpr + +class IntegerLiteralExprBase extends @integer_literal_expr, NumberLiteralExpr { + override string toString() { result = "IntegerLiteralExpr" } + + string getStringValue() { integer_literal_exprs(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/InterpolatedStringLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/InterpolatedStringLiteralExpr.qll new file mode 100644 index 00000000000..d3d5f922f45 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/InterpolatedStringLiteralExpr.qll @@ -0,0 +1,37 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.expr.LiteralExpr +import codeql.swift.elements.expr.OpaqueValueExpr +import codeql.swift.elements.expr.TapExpr + +class InterpolatedStringLiteralExprBase extends @interpolated_string_literal_expr, LiteralExpr { + override string toString() { result = "InterpolatedStringLiteralExpr" } + + OpaqueValueExpr getInterpolationExpr() { + exists(OpaqueValueExpr x | + interpolated_string_literal_expr_interpolation_exprs(this, x) and + result = x.resolve() + ) + } + + Expr getInterpolationCountExpr() { + exists(Expr x | + interpolated_string_literal_expr_interpolation_count_exprs(this, x) and + result = x.resolve() + ) + } + + Expr getLiteralCapacityExpr() { + exists(Expr x | + interpolated_string_literal_expr_literal_capacity_exprs(this, x) and + result = x.resolve() + ) + } + + TapExpr getAppendingExpr() { + exists(TapExpr x | + interpolated_string_literal_expr_appending_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/IsExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/IsExpr.qll new file mode 100644 index 00000000000..51af55eddb7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/IsExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.CheckedCastExpr + +class IsExprBase extends @is_expr, CheckedCastExpr { + override string toString() { result = "IsExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/KeyPathApplicationExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/KeyPathApplicationExpr.qll new file mode 100644 index 00000000000..ebf1276e749 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/KeyPathApplicationExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class KeyPathApplicationExprBase extends @key_path_application_expr, Expr { + override string toString() { result = "KeyPathApplicationExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/KeyPathDotExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/KeyPathDotExpr.qll new file mode 100644 index 00000000000..6e4281c7d97 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/KeyPathDotExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class KeyPathDotExprBase extends @key_path_dot_expr, Expr { + override string toString() { result = "KeyPathDotExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/KeyPathExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/KeyPathExpr.qll new file mode 100644 index 00000000000..4801e957a8a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/KeyPathExpr.qll @@ -0,0 +1,20 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class KeyPathExprBase extends @key_path_expr, Expr { + override string toString() { result = "KeyPathExpr" } + + Expr getParsedRoot() { + exists(Expr x | + key_path_expr_parsed_roots(this, x) and + result = x.resolve() + ) + } + + Expr getParsedPath() { + exists(Expr x | + key_path_expr_parsed_paths(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LazyInitializerExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LazyInitializerExpr.qll new file mode 100644 index 00000000000..6fa98ef9b79 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LazyInitializerExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class LazyInitializerExprBase extends @lazy_initializer_expr, Expr { + override string toString() { result = "LazyInitializerExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExpr.qll new file mode 100644 index 00000000000..7a7c68f3859 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class LinearFunctionExprBase extends @linear_function_expr, ImplicitConversionExpr { + override string toString() { result = "LinearFunctionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExtractOriginalExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExtractOriginalExpr.qll new file mode 100644 index 00000000000..82fbb7f32ba --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LinearFunctionExtractOriginalExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class LinearFunctionExtractOriginalExprBase extends @linear_function_extract_original_expr, + ImplicitConversionExpr { + override string toString() { result = "LinearFunctionExtractOriginalExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LinearToDifferentiableFunctionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LinearToDifferentiableFunctionExpr.qll new file mode 100644 index 00000000000..f936d79cd3e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LinearToDifferentiableFunctionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class LinearToDifferentiableFunctionExprBase extends @linear_to_differentiable_function_expr, + ImplicitConversionExpr { + override string toString() { result = "LinearToDifferentiableFunctionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LiteralExpr.qll new file mode 100644 index 00000000000..65305e00a6e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class LiteralExprBase extends @literal_expr, Expr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/LoadExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LoadExpr.qll new file mode 100644 index 00000000000..c2274d9b689 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LoadExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class LoadExprBase extends @load_expr, ImplicitConversionExpr { + override string toString() { result = "LoadExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/LookupExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/LookupExpr.qll new file mode 100644 index 00000000000..095e5c81f44 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/LookupExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class LookupExprBase extends @lookup_expr, Expr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/MagicIdentifierLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/MagicIdentifierLiteralExpr.qll new file mode 100644 index 00000000000..43915a6ab5b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/MagicIdentifierLiteralExpr.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.BuiltinLiteralExpr + +class MagicIdentifierLiteralExprBase extends @magic_identifier_literal_expr, BuiltinLiteralExpr { + override string toString() { result = "MagicIdentifierLiteralExpr" } + + string getKind() { magic_identifier_literal_exprs(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/MakeTemporarilyEscapableExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/MakeTemporarilyEscapableExpr.qll new file mode 100644 index 00000000000..100ebbdb02c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/MakeTemporarilyEscapableExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class MakeTemporarilyEscapableExprBase extends @make_temporarily_escapable_expr, Expr { + override string toString() { result = "MakeTemporarilyEscapableExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/MemberRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/MemberRefExpr.qll new file mode 100644 index 00000000000..aa453e1c705 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/MemberRefExpr.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.expr.LookupExpr + +class MemberRefExprBase extends @member_ref_expr, LookupExpr { + override string toString() { result = "MemberRefExpr" } + + Expr getBaseExpr() { + exists(Expr x | + member_ref_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/MetatypeConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/MetatypeConversionExpr.qll new file mode 100644 index 00000000000..999afa62c9e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/MetatypeConversionExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class MetatypeConversionExprBase extends @metatype_conversion_expr, ImplicitConversionExpr { + override string toString() { result = "MetatypeConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/NilLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/NilLiteralExpr.qll new file mode 100644 index 00000000000..836ce38d548 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/NilLiteralExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.LiteralExpr + +class NilLiteralExprBase extends @nil_literal_expr, LiteralExpr { + override string toString() { result = "NilLiteralExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/NumberLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/NumberLiteralExpr.qll new file mode 100644 index 00000000000..102e11eab2c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/NumberLiteralExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.BuiltinLiteralExpr + +class NumberLiteralExprBase extends @number_literal_expr, BuiltinLiteralExpr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/ObjCSelectorExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ObjCSelectorExpr.qll new file mode 100644 index 00000000000..fbd770cb83e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ObjCSelectorExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class ObjCSelectorExprBase extends @obj_c_selector_expr, Expr { + override string toString() { result = "ObjCSelectorExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ObjectLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ObjectLiteralExpr.qll new file mode 100644 index 00000000000..9aea71ce341 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ObjectLiteralExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.LiteralExpr + +class ObjectLiteralExprBase extends @object_literal_expr, LiteralExpr { + override string toString() { result = "ObjectLiteralExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OneWayExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OneWayExpr.qll new file mode 100644 index 00000000000..353b096b759 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OneWayExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OneWayExprBase extends @one_way_expr, Expr { + override string toString() { result = "OneWayExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OpaqueValueExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OpaqueValueExpr.qll new file mode 100644 index 00000000000..d88089457f1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OpaqueValueExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OpaqueValueExprBase extends @opaque_value_expr, Expr { + override string toString() { result = "OpaqueValueExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OpenExistentialExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OpenExistentialExpr.qll new file mode 100644 index 00000000000..94300f6bc41 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OpenExistentialExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OpenExistentialExprBase extends @open_existential_expr, Expr { + override string toString() { result = "OpenExistentialExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OptionalEvaluationExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OptionalEvaluationExpr.qll new file mode 100644 index 00000000000..b1aa469f6a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OptionalEvaluationExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OptionalEvaluationExprBase extends @optional_evaluation_expr, Expr { + override string toString() { result = "OptionalEvaluationExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OptionalTryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OptionalTryExpr.qll new file mode 100644 index 00000000000..8657344eb55 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OptionalTryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AnyTryExpr + +class OptionalTryExprBase extends @optional_try_expr, AnyTryExpr { + override string toString() { result = "OptionalTryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OtherConstructorDeclRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OtherConstructorDeclRefExpr.qll new file mode 100644 index 00000000000..c32da7fa5af --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OtherConstructorDeclRefExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OtherConstructorDeclRefExprBase extends @other_constructor_decl_ref_expr, Expr { + override string toString() { result = "OtherConstructorDeclRefExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/OverloadSetRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OverloadSetRefExpr.qll new file mode 100644 index 00000000000..a575fe6bd32 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OverloadSetRefExpr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class OverloadSetRefExprBase extends @overload_set_ref_expr, Expr { } diff --git a/swift/ql/lib/codeql/swift/generated/expr/OverloadedDeclRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/OverloadedDeclRefExpr.qll new file mode 100644 index 00000000000..bd93baa605f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/OverloadedDeclRefExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.OverloadSetRefExpr + +class OverloadedDeclRefExprBase extends @overloaded_decl_ref_expr, OverloadSetRefExpr { + override string toString() { result = "OverloadedDeclRefExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ParenExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ParenExpr.qll new file mode 100644 index 00000000000..20ad4d97304 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ParenExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.IdentityExpr + +class ParenExprBase extends @paren_expr, IdentityExpr { + override string toString() { result = "ParenExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/PointerToPointerExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/PointerToPointerExpr.qll new file mode 100644 index 00000000000..649653c8c3e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/PointerToPointerExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class PointerToPointerExprBase extends @pointer_to_pointer_expr, ImplicitConversionExpr { + override string toString() { result = "PointerToPointerExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/PostfixUnaryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/PostfixUnaryExpr.qll new file mode 100644 index 00000000000..ce96c7bfc11 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/PostfixUnaryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ApplyExpr + +class PostfixUnaryExprBase extends @postfix_unary_expr, ApplyExpr { + override string toString() { result = "PostfixUnaryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/PrefixUnaryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/PrefixUnaryExpr.qll new file mode 100644 index 00000000000..ec122b5d785 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/PrefixUnaryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ApplyExpr + +class PrefixUnaryExprBase extends @prefix_unary_expr, ApplyExpr { + override string toString() { result = "PrefixUnaryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/PropertyWrapperValuePlaceholderExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/PropertyWrapperValuePlaceholderExpr.qll new file mode 100644 index 00000000000..74ad001df53 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/PropertyWrapperValuePlaceholderExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class PropertyWrapperValuePlaceholderExprBase extends @property_wrapper_value_placeholder_expr, Expr { + override string toString() { result = "PropertyWrapperValuePlaceholderExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/ProtocolMetatypeToObjectExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/ProtocolMetatypeToObjectExpr.qll new file mode 100644 index 00000000000..e2c4c5c25ac --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/ProtocolMetatypeToObjectExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class ProtocolMetatypeToObjectExprBase extends @protocol_metatype_to_object_expr, + ImplicitConversionExpr { + override string toString() { result = "ProtocolMetatypeToObjectExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/RebindSelfInConstructorExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/RebindSelfInConstructorExpr.qll new file mode 100644 index 00000000000..f4857fb29e5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/RebindSelfInConstructorExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class RebindSelfInConstructorExprBase extends @rebind_self_in_constructor_expr, Expr { + override string toString() { result = "RebindSelfInConstructorExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/RegexLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/RegexLiteralExpr.qll new file mode 100644 index 00000000000..8369264e316 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/RegexLiteralExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.LiteralExpr + +class RegexLiteralExprBase extends @regex_literal_expr, LiteralExpr { + override string toString() { result = "RegexLiteralExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/SelfApplyExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/SelfApplyExpr.qll new file mode 100644 index 00000000000..daa78c89a7e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/SelfApplyExpr.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ApplyExpr +import codeql.swift.elements.expr.Expr + +class SelfApplyExprBase extends @self_apply_expr, ApplyExpr { + Expr getBaseExpr() { + exists(Expr x | + self_apply_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/SequenceExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/SequenceExpr.qll new file mode 100644 index 00000000000..6de638ea809 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/SequenceExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class SequenceExprBase extends @sequence_expr, Expr { + override string toString() { result = "SequenceExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/StringLiteralExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/StringLiteralExpr.qll new file mode 100644 index 00000000000..3f9693ba780 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/StringLiteralExpr.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.BuiltinLiteralExpr + +class StringLiteralExprBase extends @string_literal_expr, BuiltinLiteralExpr { + override string toString() { result = "StringLiteralExpr" } + + string getValue() { string_literal_exprs(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/StringToPointerExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/StringToPointerExpr.qll new file mode 100644 index 00000000000..0a1d64dcc6f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/StringToPointerExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class StringToPointerExprBase extends @string_to_pointer_expr, ImplicitConversionExpr { + override string toString() { result = "StringToPointerExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/SubscriptExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/SubscriptExpr.qll new file mode 100644 index 00000000000..98f201103b8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/SubscriptExpr.qll @@ -0,0 +1,27 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Argument +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.decl.GenericContext +import codeql.swift.elements.expr.LookupExpr + +class SubscriptExprBase extends @subscript_expr, GenericContext, LookupExpr { + override string toString() { result = "SubscriptExpr" } + + Expr getBaseExpr() { + exists(Expr x | + subscript_exprs(this, x) and + result = x.resolve() + ) + } + + Argument getArgument(int index) { + exists(Argument x | + subscript_expr_arguments(this, index, x) and + result = x.resolve() + ) + } + + Argument getAnArgument() { result = getArgument(_) } + + int getNumberOfArguments() { result = count(getAnArgument()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/SuperRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/SuperRefExpr.qll new file mode 100644 index 00000000000..67e29d53d0a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/SuperRefExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class SuperRefExprBase extends @super_ref_expr, Expr { + override string toString() { result = "SuperRefExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/TapExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/TapExpr.qll new file mode 100644 index 00000000000..4f537f65229 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/TapExpr.qll @@ -0,0 +1,29 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.decl.VarDecl + +class TapExprBase extends @tap_expr, Expr { + override string toString() { result = "TapExpr" } + + Expr getSubExpr() { + exists(Expr x | + tap_expr_sub_exprs(this, x) and + result = x.resolve() + ) + } + + VarDecl getVar() { + exists(VarDecl x | + tap_exprs(this, x, _) and + result = x.resolve() + ) + } + + BraceStmt getBody() { + exists(BraceStmt x | + tap_exprs(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/TryExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/TryExpr.qll new file mode 100644 index 00000000000..06f1d82f37e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/TryExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.AnyTryExpr + +class TryExprBase extends @try_expr, AnyTryExpr { + override string toString() { result = "TryExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/TupleElementExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/TupleElementExpr.qll new file mode 100644 index 00000000000..9976f6f3737 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/TupleElementExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class TupleElementExprBase extends @tuple_element_expr, Expr { + override string toString() { result = "TupleElementExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/TupleExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/TupleExpr.qll new file mode 100644 index 00000000000..c3d6210299d --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/TupleExpr.qll @@ -0,0 +1,17 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class TupleExprBase extends @tuple_expr, Expr { + override string toString() { result = "TupleExpr" } + + Expr getElement(int index) { + exists(Expr x | + tuple_expr_elements(this, index, x) and + result = x.resolve() + ) + } + + Expr getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/TypeExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/TypeExpr.qll new file mode 100644 index 00000000000..4e0e18afb42 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/TypeExpr.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.UnknownAstNode + +class TypeExprBase extends @type_expr, Expr { + override string toString() { result = "TypeExpr" } + + UnknownAstNode getTypeRepr() { + exists(UnknownAstNode x | + type_expr_type_reprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnderlyingToOpaqueExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnderlyingToOpaqueExpr.qll new file mode 100644 index 00000000000..710c357d689 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnderlyingToOpaqueExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class UnderlyingToOpaqueExprBase extends @underlying_to_opaque_expr, ImplicitConversionExpr { + override string toString() { result = "UnderlyingToOpaqueExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnevaluatedInstanceExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnevaluatedInstanceExpr.qll new file mode 100644 index 00000000000..4aec9923cf5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnevaluatedInstanceExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class UnevaluatedInstanceExprBase extends @unevaluated_instance_expr, ImplicitConversionExpr { + override string toString() { result = "UnevaluatedInstanceExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDeclRefExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDeclRefExpr.qll new file mode 100644 index 00000000000..c3f7ed0f5b1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDeclRefExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class UnresolvedDeclRefExprBase extends @unresolved_decl_ref_expr, Expr { + override string toString() { result = "UnresolvedDeclRefExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDotExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDotExpr.qll new file mode 100644 index 00000000000..e77552916bc --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedDotExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class UnresolvedDotExprBase extends @unresolved_dot_expr, Expr { + override string toString() { result = "UnresolvedDotExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberChainResultExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberChainResultExpr.qll new file mode 100644 index 00000000000..b2021ed8e60 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberChainResultExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.IdentityExpr + +class UnresolvedMemberChainResultExprBase extends @unresolved_member_chain_result_expr, IdentityExpr { + override string toString() { result = "UnresolvedMemberChainResultExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberExpr.qll new file mode 100644 index 00000000000..5591495d7c4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedMemberExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class UnresolvedMemberExprBase extends @unresolved_member_expr, Expr { + override string toString() { result = "UnresolvedMemberExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedPatternExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedPatternExpr.qll new file mode 100644 index 00000000000..ea903e736b9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedPatternExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class UnresolvedPatternExprBase extends @unresolved_pattern_expr, Expr { + override string toString() { result = "UnresolvedPatternExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedSpecializeExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedSpecializeExpr.qll new file mode 100644 index 00000000000..25d0c998c88 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedSpecializeExpr.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class UnresolvedSpecializeExprBase extends @unresolved_specialize_expr, Expr { + override string toString() { result = "UnresolvedSpecializeExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/UnresolvedTypeConversionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedTypeConversionExpr.qll new file mode 100644 index 00000000000..4878b79873e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/UnresolvedTypeConversionExpr.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.ImplicitConversionExpr + +class UnresolvedTypeConversionExprBase extends @unresolved_type_conversion_expr, + ImplicitConversionExpr { + override string toString() { result = "UnresolvedTypeConversionExpr" } +} diff --git a/swift/ql/lib/codeql/swift/generated/expr/VarargExpansionExpr.qll b/swift/ql/lib/codeql/swift/generated/expr/VarargExpansionExpr.qll new file mode 100644 index 00000000000..c420ef75619 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/expr/VarargExpansionExpr.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr + +class VarargExpansionExprBase extends @vararg_expansion_expr, Expr { + override string toString() { result = "VarargExpansionExpr" } + + Expr getSubExpr() { + exists(Expr x | + vararg_expansion_exprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/AnyPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/AnyPattern.qll new file mode 100644 index 00000000000..04868020580 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/AnyPattern.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class AnyPatternBase extends @any_pattern, Pattern { + override string toString() { result = "AnyPattern" } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/BindingPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/BindingPattern.qll new file mode 100644 index 00000000000..02446bb7729 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/BindingPattern.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class BindingPatternBase extends @binding_pattern, Pattern { + override string toString() { result = "BindingPattern" } + + Pattern getSubPattern() { + exists(Pattern x | + binding_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/BoolPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/BoolPattern.qll new file mode 100644 index 00000000000..b533d9243eb --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/BoolPattern.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class BoolPatternBase extends @bool_pattern, Pattern { + override string toString() { result = "BoolPattern" } + + boolean getValue() { bool_patterns(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/EnumElementPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/EnumElementPattern.qll new file mode 100644 index 00000000000..fb7ade93a8b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/EnumElementPattern.qll @@ -0,0 +1,21 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.EnumElementDecl +import codeql.swift.elements.pattern.Pattern + +class EnumElementPatternBase extends @enum_element_pattern, Pattern { + override string toString() { result = "EnumElementPattern" } + + EnumElementDecl getElement() { + exists(EnumElementDecl x | + enum_element_patterns(this, x) and + result = x.resolve() + ) + } + + Pattern getSubPattern() { + exists(Pattern x | + enum_element_pattern_sub_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/ExprPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/ExprPattern.qll new file mode 100644 index 00000000000..2114614f348 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/ExprPattern.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.pattern.Pattern + +class ExprPatternBase extends @expr_pattern, Pattern { + override string toString() { result = "ExprPattern" } + + Expr getSubExpr() { + exists(Expr x | + expr_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/IsPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/IsPattern.qll new file mode 100644 index 00000000000..9e5a78d5967 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/IsPattern.qll @@ -0,0 +1,21 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern +import codeql.swift.elements.typerepr.TypeRepr + +class IsPatternBase extends @is_pattern, Pattern { + override string toString() { result = "IsPattern" } + + TypeRepr getCastTypeRepr() { + exists(TypeRepr x | + is_patterns(this, x) and + result = x.resolve() + ) + } + + Pattern getSubPattern() { + exists(Pattern x | + is_pattern_sub_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/NamedPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/NamedPattern.qll new file mode 100644 index 00000000000..833474b11e9 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/NamedPattern.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class NamedPatternBase extends @named_pattern, Pattern { + override string toString() { result = "NamedPattern" } + + string getName() { named_patterns(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/OptionalSomePattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/OptionalSomePattern.qll new file mode 100644 index 00000000000..bd205e2fe1d --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/OptionalSomePattern.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class OptionalSomePatternBase extends @optional_some_pattern, Pattern { + override string toString() { result = "OptionalSomePattern" } + + Pattern getSubPattern() { + exists(Pattern x | + optional_some_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/ParenPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/ParenPattern.qll new file mode 100644 index 00000000000..f3ddab4b9dd --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/ParenPattern.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class ParenPatternBase extends @paren_pattern, Pattern { + override string toString() { result = "ParenPattern" } + + Pattern getSubPattern() { + exists(Pattern x | + paren_patterns(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/Pattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/Pattern.qll new file mode 100644 index 00000000000..2570d212c49 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/Pattern.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode + +class PatternBase extends @pattern, AstNode { } diff --git a/swift/ql/lib/codeql/swift/generated/pattern/TuplePattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/TuplePattern.qll new file mode 100644 index 00000000000..f1de477cc55 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/TuplePattern.qll @@ -0,0 +1,17 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern + +class TuplePatternBase extends @tuple_pattern, Pattern { + override string toString() { result = "TuplePattern" } + + Pattern getElement(int index) { + exists(Pattern x | + tuple_pattern_elements(this, index, x) and + result = x.resolve() + ) + } + + Pattern getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/pattern/TypedPattern.qll b/swift/ql/lib/codeql/swift/generated/pattern/TypedPattern.qll new file mode 100644 index 00000000000..e86ca301fdc --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/pattern/TypedPattern.qll @@ -0,0 +1,21 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.pattern.Pattern +import codeql.swift.elements.typerepr.TypeRepr + +class TypedPatternBase extends @typed_pattern, Pattern { + override string toString() { result = "TypedPattern" } + + Pattern getSubPattern() { + exists(Pattern x | + typed_patterns(this, x) and + result = x.resolve() + ) + } + + TypeRepr getTypeRepr() { + exists(TypeRepr x | + typed_pattern_type_reprs(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/BraceStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/BraceStmt.qll new file mode 100644 index 00000000000..6515d0ac26a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/BraceStmt.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode +import codeql.swift.elements.stmt.Stmt + +class BraceStmtBase extends @brace_stmt, Stmt { + override string toString() { result = "BraceStmt" } + + AstNode getElement(int index) { + exists(AstNode x | + brace_stmt_elements(this, index, x) and + result = x.resolve() + ) + } + + AstNode getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/BreakStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/BreakStmt.qll new file mode 100644 index 00000000000..d0e0a84c59d --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/BreakStmt.qll @@ -0,0 +1,15 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class BreakStmtBase extends @break_stmt, Stmt { + override string toString() { result = "BreakStmt" } + + string getTargetName() { break_stmt_target_names(this, result) } + + Stmt getTarget() { + exists(Stmt x | + break_stmt_targets(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/CaseLabelItem.qll b/swift/ql/lib/codeql/swift/generated/stmt/CaseLabelItem.qll new file mode 100644 index 00000000000..f5f9680ed6c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/CaseLabelItem.qll @@ -0,0 +1,22 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.pattern.Pattern + +class CaseLabelItemBase extends @case_label_item, AstNode { + override string toString() { result = "CaseLabelItem" } + + Pattern getPattern() { + exists(Pattern x | + case_label_items(this, x) and + result = x.resolve() + ) + } + + Expr getGuard() { + exists(Expr x | + case_label_item_guards(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/CaseStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/CaseStmt.qll new file mode 100644 index 00000000000..030a0236c07 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/CaseStmt.qll @@ -0,0 +1,37 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.CaseLabelItem +import codeql.swift.elements.stmt.Stmt +import codeql.swift.elements.decl.VarDecl + +class CaseStmtBase extends @case_stmt, Stmt { + override string toString() { result = "CaseStmt" } + + Stmt getBody() { + exists(Stmt x | + case_stmts(this, x) and + result = x.resolve() + ) + } + + CaseLabelItem getLabel(int index) { + exists(CaseLabelItem x | + case_stmt_labels(this, index, x) and + result = x.resolve() + ) + } + + CaseLabelItem getALabel() { result = getLabel(_) } + + int getNumberOfLabels() { result = count(getALabel()) } + + VarDecl getVariable(int index) { + exists(VarDecl x | + case_stmt_variables(this, index, x) and + result = x.resolve() + ) + } + + VarDecl getAVariable() { result = getVariable(_) } + + int getNumberOfVariables() { result = count(getAVariable()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/ConditionElement.qll b/swift/ql/lib/codeql/swift/generated/stmt/ConditionElement.qll new file mode 100644 index 00000000000..c704c8f2710 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/ConditionElement.qll @@ -0,0 +1,29 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.Locatable +import codeql.swift.elements.pattern.Pattern + +class ConditionElementBase extends @condition_element, Locatable { + override string toString() { result = "ConditionElement" } + + Expr getBoolean() { + exists(Expr x | + condition_element_booleans(this, x) and + result = x.resolve() + ) + } + + Pattern getPattern() { + exists(Pattern x | + condition_element_patterns(this, x) and + result = x.resolve() + ) + } + + Expr getInitializer() { + exists(Expr x | + condition_element_initializers(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/ContinueStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/ContinueStmt.qll new file mode 100644 index 00000000000..0c616fc659a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/ContinueStmt.qll @@ -0,0 +1,15 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class ContinueStmtBase extends @continue_stmt, Stmt { + override string toString() { result = "ContinueStmt" } + + string getTargetName() { continue_stmt_target_names(this, result) } + + Stmt getTarget() { + exists(Stmt x | + continue_stmt_targets(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/DeferStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/DeferStmt.qll new file mode 100644 index 00000000000..cbf703972f5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/DeferStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.stmt.Stmt + +class DeferStmtBase extends @defer_stmt, Stmt { + override string toString() { result = "DeferStmt" } + + BraceStmt getBody() { + exists(BraceStmt x | + defer_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/DoCatchStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/DoCatchStmt.qll new file mode 100644 index 00000000000..92d2664af0d --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/DoCatchStmt.qll @@ -0,0 +1,26 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.CaseStmt +import codeql.swift.elements.stmt.LabeledStmt +import codeql.swift.elements.stmt.Stmt + +class DoCatchStmtBase extends @do_catch_stmt, LabeledStmt { + override string toString() { result = "DoCatchStmt" } + + Stmt getBody() { + exists(Stmt x | + do_catch_stmts(this, x) and + result = x.resolve() + ) + } + + CaseStmt getCatch(int index) { + exists(CaseStmt x | + do_catch_stmt_catches(this, index, x) and + result = x.resolve() + ) + } + + CaseStmt getACatch() { result = getCatch(_) } + + int getNumberOfCatches() { result = count(getACatch()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/DoStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/DoStmt.qll new file mode 100644 index 00000000000..d3b3964c13f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/DoStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.stmt.LabeledStmt + +class DoStmtBase extends @do_stmt, LabeledStmt { + override string toString() { result = "DoStmt" } + + BraceStmt getBody() { + exists(BraceStmt x | + do_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/FailStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/FailStmt.qll new file mode 100644 index 00000000000..b045005cb7f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/FailStmt.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class FailStmtBase extends @fail_stmt, Stmt { + override string toString() { result = "FailStmt" } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/FallthroughStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/FallthroughStmt.qll new file mode 100644 index 00000000000..beac80ab918 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/FallthroughStmt.qll @@ -0,0 +1,21 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.CaseStmt +import codeql.swift.elements.stmt.Stmt + +class FallthroughStmtBase extends @fallthrough_stmt, Stmt { + override string toString() { result = "FallthroughStmt" } + + CaseStmt getFallthroughSource() { + exists(CaseStmt x | + fallthrough_stmts(this, x, _) and + result = x.resolve() + ) + } + + CaseStmt getFallthroughDest() { + exists(CaseStmt x | + fallthrough_stmts(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/ForEachStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/ForEachStmt.qll new file mode 100644 index 00000000000..4a14dcca507 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/ForEachStmt.qll @@ -0,0 +1,22 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.stmt.LabeledStmt + +class ForEachStmtBase extends @for_each_stmt, LabeledStmt { + override string toString() { result = "ForEachStmt" } + + BraceStmt getBody() { + exists(BraceStmt x | + for_each_stmts(this, x) and + result = x.resolve() + ) + } + + Expr getWhere() { + exists(Expr x | + for_each_stmt_wheres(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/GuardStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/GuardStmt.qll new file mode 100644 index 00000000000..a22da861807 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/GuardStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.BraceStmt +import codeql.swift.elements.stmt.LabeledConditionalStmt + +class GuardStmtBase extends @guard_stmt, LabeledConditionalStmt { + override string toString() { result = "GuardStmt" } + + BraceStmt getBody() { + exists(BraceStmt x | + guard_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/IfStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/IfStmt.qll new file mode 100644 index 00000000000..e9030626766 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/IfStmt.qll @@ -0,0 +1,21 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.LabeledConditionalStmt +import codeql.swift.elements.stmt.Stmt + +class IfStmtBase extends @if_stmt, LabeledConditionalStmt { + override string toString() { result = "IfStmt" } + + Stmt getThen() { + exists(Stmt x | + if_stmts(this, x) and + result = x.resolve() + ) + } + + Stmt getElse() { + exists(Stmt x | + if_stmt_elses(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/LabeledConditionalStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/LabeledConditionalStmt.qll new file mode 100644 index 00000000000..c6d7acded63 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/LabeledConditionalStmt.qll @@ -0,0 +1,12 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.LabeledStmt +import codeql.swift.elements.stmt.StmtCondition + +class LabeledConditionalStmtBase extends @labeled_conditional_stmt, LabeledStmt { + StmtCondition getCondition() { + exists(StmtCondition x | + labeled_conditional_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/LabeledStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/LabeledStmt.qll new file mode 100644 index 00000000000..6fcd47930dc --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/LabeledStmt.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class LabeledStmtBase extends @labeled_stmt, Stmt { + string getLabel() { labeled_stmt_labels(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/PoundAssertStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/PoundAssertStmt.qll new file mode 100644 index 00000000000..ccce691d3d7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/PoundAssertStmt.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class PoundAssertStmtBase extends @pound_assert_stmt, Stmt { + override string toString() { result = "PoundAssertStmt" } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/RepeatWhileStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/RepeatWhileStmt.qll new file mode 100644 index 00000000000..291c0723ecf --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/RepeatWhileStmt.qll @@ -0,0 +1,22 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.stmt.LabeledStmt +import codeql.swift.elements.stmt.Stmt + +class RepeatWhileStmtBase extends @repeat_while_stmt, LabeledStmt { + override string toString() { result = "RepeatWhileStmt" } + + Expr getCondition() { + exists(Expr x | + repeat_while_stmts(this, x, _) and + result = x.resolve() + ) + } + + Stmt getBody() { + exists(Stmt x | + repeat_while_stmts(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/ReturnStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/ReturnStmt.qll new file mode 100644 index 00000000000..4bde758e9e8 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/ReturnStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.stmt.Stmt + +class ReturnStmtBase extends @return_stmt, Stmt { + override string toString() { result = "ReturnStmt" } + + Expr getResult() { + exists(Expr x | + return_stmt_results(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/Stmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/Stmt.qll new file mode 100644 index 00000000000..092b314b01c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/Stmt.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode + +class StmtBase extends @stmt, AstNode { } diff --git a/swift/ql/lib/codeql/swift/generated/stmt/StmtCondition.qll b/swift/ql/lib/codeql/swift/generated/stmt/StmtCondition.qll new file mode 100644 index 00000000000..348cd6c564b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/StmtCondition.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode +import codeql.swift.elements.stmt.ConditionElement + +class StmtConditionBase extends @stmt_condition, AstNode { + override string toString() { result = "StmtCondition" } + + ConditionElement getElement(int index) { + exists(ConditionElement x | + stmt_condition_elements(this, index, x) and + result = x.resolve() + ) + } + + ConditionElement getAnElement() { result = getElement(_) } + + int getNumberOfElements() { result = count(getAnElement()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/SwitchStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/SwitchStmt.qll new file mode 100644 index 00000000000..f137d7bd228 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/SwitchStmt.qll @@ -0,0 +1,26 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.CaseStmt +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.stmt.LabeledStmt + +class SwitchStmtBase extends @switch_stmt, LabeledStmt { + override string toString() { result = "SwitchStmt" } + + Expr getExpr() { + exists(Expr x | + switch_stmts(this, x) and + result = x.resolve() + ) + } + + CaseStmt getCase(int index) { + exists(CaseStmt x | + switch_stmt_cases(this, index, x) and + result = x.resolve() + ) + } + + CaseStmt getACase() { result = getCase(_) } + + int getNumberOfCases() { result = count(getACase()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/ThrowStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/ThrowStmt.qll new file mode 100644 index 00000000000..5f724780bd1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/ThrowStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.expr.Expr +import codeql.swift.elements.stmt.Stmt + +class ThrowStmtBase extends @throw_stmt, Stmt { + override string toString() { result = "ThrowStmt" } + + Expr getSubExpr() { + exists(Expr x | + throw_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/WhileStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/WhileStmt.qll new file mode 100644 index 00000000000..23a69ccfa36 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/WhileStmt.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.LabeledConditionalStmt +import codeql.swift.elements.stmt.Stmt + +class WhileStmtBase extends @while_stmt, LabeledConditionalStmt { + override string toString() { result = "WhileStmt" } + + Stmt getBody() { + exists(Stmt x | + while_stmts(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/stmt/YieldStmt.qll b/swift/ql/lib/codeql/swift/generated/stmt/YieldStmt.qll new file mode 100644 index 00000000000..6c94f2936f5 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/stmt/YieldStmt.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.stmt.Stmt + +class YieldStmtBase extends @yield_stmt, Stmt { + override string toString() { result = "YieldStmt" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/AnyBuiltinIntegerType.qll b/swift/ql/lib/codeql/swift/generated/type/AnyBuiltinIntegerType.qll new file mode 100644 index 00000000000..230e0014a04 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/AnyBuiltinIntegerType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class AnyBuiltinIntegerTypeBase extends @any_builtin_integer_type, BuiltinType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/AnyFunctionType.qll b/swift/ql/lib/codeql/swift/generated/type/AnyFunctionType.qll new file mode 100644 index 00000000000..847017e44f2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/AnyFunctionType.qll @@ -0,0 +1,28 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class AnyFunctionTypeBase extends @any_function_type, Type { + Type getResult() { + exists(Type x | + any_function_types(this, x) and + result = x.resolve() + ) + } + + Type getParamType(int index) { + exists(Type x | + any_function_type_param_types(this, index, x) and + result = x.resolve() + ) + } + + Type getAParamType() { result = getParamType(_) } + + int getNumberOfParamTypes() { result = count(getAParamType()) } + + string getParamLabel(int index) { any_function_type_param_labels(this, index, result) } + + string getAParamLabel() { result = getParamLabel(_) } + + int getNumberOfParamLabels() { result = count(getAParamLabel()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/AnyGenericType.qll b/swift/ql/lib/codeql/swift/generated/type/AnyGenericType.qll new file mode 100644 index 00000000000..b366aac7496 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/AnyGenericType.qll @@ -0,0 +1,19 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.Decl +import codeql.swift.elements.type.Type + +class AnyGenericTypeBase extends @any_generic_type, Type { + Type getParent() { + exists(Type x | + any_generic_type_parents(this, x) and + result = x.resolve() + ) + } + + Decl getDeclaration() { + exists(Decl x | + any_generic_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/AnyMetatypeType.qll b/swift/ql/lib/codeql/swift/generated/type/AnyMetatypeType.qll new file mode 100644 index 00000000000..8e77aa7c707 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/AnyMetatypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class AnyMetatypeTypeBase extends @any_metatype_type, Type { } diff --git a/swift/ql/lib/codeql/swift/generated/type/ArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/ArchetypeType.qll new file mode 100644 index 00000000000..2807e6b23ee --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ArchetypeType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SubstitutableType + +class ArchetypeTypeBase extends @archetype_type, SubstitutableType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/ArraySliceType.qll b/swift/ql/lib/codeql/swift/generated/type/ArraySliceType.qll new file mode 100644 index 00000000000..f72995035e0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ArraySliceType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.UnarySyntaxSugarType + +class ArraySliceTypeBase extends @array_slice_type, UnarySyntaxSugarType { + override string toString() { result = "ArraySliceType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BoundGenericClassType.qll b/swift/ql/lib/codeql/swift/generated/type/BoundGenericClassType.qll new file mode 100644 index 00000000000..10838dc3cd4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BoundGenericClassType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BoundGenericType + +class BoundGenericClassTypeBase extends @bound_generic_class_type, BoundGenericType { + override string toString() { result = "BoundGenericClassType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BoundGenericEnumType.qll b/swift/ql/lib/codeql/swift/generated/type/BoundGenericEnumType.qll new file mode 100644 index 00000000000..fb47e1e1012 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BoundGenericEnumType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BoundGenericType + +class BoundGenericEnumTypeBase extends @bound_generic_enum_type, BoundGenericType { + override string toString() { result = "BoundGenericEnumType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BoundGenericStructType.qll b/swift/ql/lib/codeql/swift/generated/type/BoundGenericStructType.qll new file mode 100644 index 00000000000..9c52908a7a0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BoundGenericStructType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BoundGenericType + +class BoundGenericStructTypeBase extends @bound_generic_struct_type, BoundGenericType { + override string toString() { result = "BoundGenericStructType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BoundGenericType.qll b/swift/ql/lib/codeql/swift/generated/type/BoundGenericType.qll new file mode 100644 index 00000000000..d4cdbfe0551 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BoundGenericType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.NominalOrBoundGenericNominalType + +class BoundGenericTypeBase extends @bound_generic_type, NominalOrBoundGenericNominalType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinBridgeObjectType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinBridgeObjectType.qll new file mode 100644 index 00000000000..c39b9d3c0e0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinBridgeObjectType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinBridgeObjectTypeBase extends @builtin_bridge_object_type, BuiltinType { + override string toString() { result = "BuiltinBridgeObjectType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinDefaultActorStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinDefaultActorStorageType.qll new file mode 100644 index 00000000000..be8f5527ab0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinDefaultActorStorageType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinDefaultActorStorageTypeBase extends @builtin_default_actor_storage_type, BuiltinType { + override string toString() { result = "BuiltinDefaultActorStorageType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinExecutorType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinExecutorType.qll new file mode 100644 index 00000000000..13c3c8a672a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinExecutorType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinExecutorTypeBase extends @builtin_executor_type, BuiltinType { + override string toString() { result = "BuiltinExecutorType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinFloatType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinFloatType.qll new file mode 100644 index 00000000000..03395bb5d3a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinFloatType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinFloatTypeBase extends @builtin_float_type, BuiltinType { + override string toString() { result = "BuiltinFloatType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerLiteralType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerLiteralType.qll new file mode 100644 index 00000000000..e4eeb5f574c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerLiteralType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyBuiltinIntegerType + +class BuiltinIntegerLiteralTypeBase extends @builtin_integer_literal_type, AnyBuiltinIntegerType { + override string toString() { result = "BuiltinIntegerLiteralType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerType.qll new file mode 100644 index 00000000000..05d0adf5ac2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinIntegerType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyBuiltinIntegerType + +class BuiltinIntegerTypeBase extends @builtin_integer_type, AnyBuiltinIntegerType { + override string toString() { result = "BuiltinIntegerType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinJobType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinJobType.qll new file mode 100644 index 00000000000..ec226839e5e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinJobType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinJobTypeBase extends @builtin_job_type, BuiltinType { + override string toString() { result = "BuiltinJobType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinNativeObjectType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinNativeObjectType.qll new file mode 100644 index 00000000000..6a8f75fe582 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinNativeObjectType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinNativeObjectTypeBase extends @builtin_native_object_type, BuiltinType { + override string toString() { result = "BuiltinNativeObjectType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinRawPointerType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinRawPointerType.qll new file mode 100644 index 00000000000..ebc8e11fdd0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinRawPointerType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinRawPointerTypeBase extends @builtin_raw_pointer_type, BuiltinType { + override string toString() { result = "BuiltinRawPointerType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinRawUnsafeContinuationType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinRawUnsafeContinuationType.qll new file mode 100644 index 00000000000..82d6bdb8e05 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinRawUnsafeContinuationType.qll @@ -0,0 +1,7 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinRawUnsafeContinuationTypeBase extends @builtin_raw_unsafe_continuation_type, + BuiltinType { + override string toString() { result = "BuiltinRawUnsafeContinuationType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinType.qll new file mode 100644 index 00000000000..a3490ac1d1e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class BuiltinTypeBase extends @builtin_type, Type { } diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinUnsafeValueBufferType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinUnsafeValueBufferType.qll new file mode 100644 index 00000000000..dcf5ad2cc99 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinUnsafeValueBufferType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinUnsafeValueBufferTypeBase extends @builtin_unsafe_value_buffer_type, BuiltinType { + override string toString() { result = "BuiltinUnsafeValueBufferType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/BuiltinVectorType.qll b/swift/ql/lib/codeql/swift/generated/type/BuiltinVectorType.qll new file mode 100644 index 00000000000..2a8e43f4d8f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/BuiltinVectorType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.BuiltinType + +class BuiltinVectorTypeBase extends @builtin_vector_type, BuiltinType { + override string toString() { result = "BuiltinVectorType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ClassType.qll b/swift/ql/lib/codeql/swift/generated/type/ClassType.qll new file mode 100644 index 00000000000..379c8a71aef --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ClassType.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.decl.ClassDecl +import codeql.swift.elements.type.NominalType + +class ClassTypeBase extends @class_type, NominalType { + override string toString() { result = "ClassType" } + + ClassDecl getDecl() { + exists(ClassDecl x | + class_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/DependentMemberType.qll b/swift/ql/lib/codeql/swift/generated/type/DependentMemberType.qll new file mode 100644 index 00000000000..7a70d09dbef --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/DependentMemberType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class DependentMemberTypeBase extends @dependent_member_type, Type { + override string toString() { result = "DependentMemberType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/DictionaryType.qll b/swift/ql/lib/codeql/swift/generated/type/DictionaryType.qll new file mode 100644 index 00000000000..30bd28f99c1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/DictionaryType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SyntaxSugarType + +class DictionaryTypeBase extends @dictionary_type, SyntaxSugarType { + override string toString() { result = "DictionaryType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/DynamicSelfType.qll b/swift/ql/lib/codeql/swift/generated/type/DynamicSelfType.qll new file mode 100644 index 00000000000..5b1913db7c7 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/DynamicSelfType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class DynamicSelfTypeBase extends @dynamic_self_type, Type { + override string toString() { result = "DynamicSelfType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/EnumType.qll b/swift/ql/lib/codeql/swift/generated/type/EnumType.qll new file mode 100644 index 00000000000..5fd3d90acb4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/EnumType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.NominalType + +class EnumTypeBase extends @enum_type, NominalType { + override string toString() { result = "EnumType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ErrorType.qll b/swift/ql/lib/codeql/swift/generated/type/ErrorType.qll new file mode 100644 index 00000000000..2d65d938f86 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ErrorType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class ErrorTypeBase extends @error_type, Type { + override string toString() { result = "ErrorType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ExistentialMetatypeType.qll b/swift/ql/lib/codeql/swift/generated/type/ExistentialMetatypeType.qll new file mode 100644 index 00000000000..b84efeb003a --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ExistentialMetatypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyMetatypeType + +class ExistentialMetatypeTypeBase extends @existential_metatype_type, AnyMetatypeType { + override string toString() { result = "ExistentialMetatypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ExistentialType.qll b/swift/ql/lib/codeql/swift/generated/type/ExistentialType.qll new file mode 100644 index 00000000000..5f4ae535fdb --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ExistentialType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class ExistentialTypeBase extends @existential_type, Type { + override string toString() { result = "ExistentialType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/FunctionType.qll b/swift/ql/lib/codeql/swift/generated/type/FunctionType.qll new file mode 100644 index 00000000000..c2550ea442c --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/FunctionType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyFunctionType + +class FunctionTypeBase extends @function_type, AnyFunctionType { + override string toString() { result = "FunctionType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/GenericFunctionType.qll b/swift/ql/lib/codeql/swift/generated/type/GenericFunctionType.qll new file mode 100644 index 00000000000..cc3395146be --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/GenericFunctionType.qll @@ -0,0 +1,18 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyFunctionType +import codeql.swift.elements.type.GenericTypeParamType + +class GenericFunctionTypeBase extends @generic_function_type, AnyFunctionType { + override string toString() { result = "GenericFunctionType" } + + GenericTypeParamType getGenericParam(int index) { + exists(GenericTypeParamType x | + generic_function_type_generic_params(this, index, x) and + result = x.resolve() + ) + } + + GenericTypeParamType getAGenericParam() { result = getGenericParam(_) } + + int getNumberOfGenericParams() { result = count(getAGenericParam()) } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/GenericTypeParamType.qll b/swift/ql/lib/codeql/swift/generated/type/GenericTypeParamType.qll new file mode 100644 index 00000000000..de0a5c7c596 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/GenericTypeParamType.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SubstitutableType + +class GenericTypeParamTypeBase extends @generic_type_param_type, SubstitutableType { + override string toString() { result = "GenericTypeParamType" } + + string getName() { generic_type_param_types(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/InOutType.qll b/swift/ql/lib/codeql/swift/generated/type/InOutType.qll new file mode 100644 index 00000000000..17ff1407de2 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/InOutType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class InOutTypeBase extends @in_out_type, Type { + override string toString() { result = "InOutType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/LValueType.qll b/swift/ql/lib/codeql/swift/generated/type/LValueType.qll new file mode 100644 index 00000000000..a7ede84558f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/LValueType.qll @@ -0,0 +1,13 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class LValueTypeBase extends @l_value_type, Type { + override string toString() { result = "LValueType" } + + Type getObjectType() { + exists(Type x | + l_value_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/MetatypeType.qll b/swift/ql/lib/codeql/swift/generated/type/MetatypeType.qll new file mode 100644 index 00000000000..376fa39728b --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/MetatypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyMetatypeType + +class MetatypeTypeBase extends @metatype_type, AnyMetatypeType { + override string toString() { result = "MetatypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ModuleType.qll b/swift/ql/lib/codeql/swift/generated/type/ModuleType.qll new file mode 100644 index 00000000000..a73ffdbf887 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ModuleType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class ModuleTypeBase extends @module_type, Type { + override string toString() { result = "ModuleType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/NestedArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/NestedArchetypeType.qll new file mode 100644 index 00000000000..60a4b419321 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/NestedArchetypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ArchetypeType + +class NestedArchetypeTypeBase extends @nested_archetype_type, ArchetypeType { + override string toString() { result = "NestedArchetypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/NominalOrBoundGenericNominalType.qll b/swift/ql/lib/codeql/swift/generated/type/NominalOrBoundGenericNominalType.qll new file mode 100644 index 00000000000..b1e105b0f18 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/NominalOrBoundGenericNominalType.qll @@ -0,0 +1,5 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyGenericType + +class NominalOrBoundGenericNominalTypeBase extends @nominal_or_bound_generic_nominal_type, + AnyGenericType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/NominalType.qll b/swift/ql/lib/codeql/swift/generated/type/NominalType.qll new file mode 100644 index 00000000000..eb9f1a1ef45 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/NominalType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.NominalOrBoundGenericNominalType + +class NominalTypeBase extends @nominal_type, NominalOrBoundGenericNominalType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/OpaqueTypeArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/OpaqueTypeArchetypeType.qll new file mode 100644 index 00000000000..4da709633ae --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/OpaqueTypeArchetypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ArchetypeType + +class OpaqueTypeArchetypeTypeBase extends @opaque_type_archetype_type, ArchetypeType { + override string toString() { result = "OpaqueTypeArchetypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/OpenedArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/OpenedArchetypeType.qll new file mode 100644 index 00000000000..7fb6feee0df --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/OpenedArchetypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ArchetypeType + +class OpenedArchetypeTypeBase extends @opened_archetype_type, ArchetypeType { + override string toString() { result = "OpenedArchetypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/OptionalType.qll b/swift/ql/lib/codeql/swift/generated/type/OptionalType.qll new file mode 100644 index 00000000000..d30a2f46b3f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/OptionalType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.UnarySyntaxSugarType + +class OptionalTypeBase extends @optional_type, UnarySyntaxSugarType { + override string toString() { result = "OptionalType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ParenType.qll b/swift/ql/lib/codeql/swift/generated/type/ParenType.qll new file mode 100644 index 00000000000..e0d49f5ff10 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ParenType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SugarType + +class ParenTypeBase extends @paren_type, SugarType { + override string toString() { result = "ParenType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/PlaceholderType.qll b/swift/ql/lib/codeql/swift/generated/type/PlaceholderType.qll new file mode 100644 index 00000000000..f5534efe9cd --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/PlaceholderType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class PlaceholderTypeBase extends @placeholder_type, Type { + override string toString() { result = "PlaceholderType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/PrimaryArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/PrimaryArchetypeType.qll new file mode 100644 index 00000000000..0e71f5aca0e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/PrimaryArchetypeType.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ArchetypeType +import codeql.swift.elements.type.GenericTypeParamType + +class PrimaryArchetypeTypeBase extends @primary_archetype_type, ArchetypeType { + override string toString() { result = "PrimaryArchetypeType" } + + GenericTypeParamType getInterfaceType() { + exists(GenericTypeParamType x | + primary_archetype_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ProtocolCompositionType.qll b/swift/ql/lib/codeql/swift/generated/type/ProtocolCompositionType.qll new file mode 100644 index 00000000000..9bb043938aa --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ProtocolCompositionType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class ProtocolCompositionTypeBase extends @protocol_composition_type, Type { + override string toString() { result = "ProtocolCompositionType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ProtocolType.qll b/swift/ql/lib/codeql/swift/generated/type/ProtocolType.qll new file mode 100644 index 00000000000..f30992b60bc --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ProtocolType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.NominalType + +class ProtocolTypeBase extends @protocol_type, NominalType { + override string toString() { result = "ProtocolType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/ReferenceStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/ReferenceStorageType.qll new file mode 100644 index 00000000000..f565b1dafda --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/ReferenceStorageType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class ReferenceStorageTypeBase extends @reference_storage_type, Type { } diff --git a/swift/ql/lib/codeql/swift/generated/type/SequenceArchetypeType.qll b/swift/ql/lib/codeql/swift/generated/type/SequenceArchetypeType.qll new file mode 100644 index 00000000000..7b1b753d046 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SequenceArchetypeType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ArchetypeType + +class SequenceArchetypeTypeBase extends @sequence_archetype_type, ArchetypeType { + override string toString() { result = "SequenceArchetypeType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/SilBlockStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/SilBlockStorageType.qll new file mode 100644 index 00000000000..3e76470b7db --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SilBlockStorageType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SilBlockStorageTypeBase extends @sil_block_storage_type, Type { + override string toString() { result = "SilBlockStorageType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/SilBoxType.qll b/swift/ql/lib/codeql/swift/generated/type/SilBoxType.qll new file mode 100644 index 00000000000..c9372a2189e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SilBoxType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SilBoxTypeBase extends @sil_box_type, Type { + override string toString() { result = "SilBoxType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/SilFunctionType.qll b/swift/ql/lib/codeql/swift/generated/type/SilFunctionType.qll new file mode 100644 index 00000000000..06095435896 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SilFunctionType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SilFunctionTypeBase extends @sil_function_type, Type { + override string toString() { result = "SilFunctionType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/SilTokenType.qll b/swift/ql/lib/codeql/swift/generated/type/SilTokenType.qll new file mode 100644 index 00000000000..0214692a3b0 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SilTokenType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SilTokenTypeBase extends @sil_token_type, Type { + override string toString() { result = "SilTokenType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/StructType.qll b/swift/ql/lib/codeql/swift/generated/type/StructType.qll new file mode 100644 index 00000000000..4a78562f4a4 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/StructType.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.NominalType +import codeql.swift.elements.decl.StructDecl + +class StructTypeBase extends @struct_type, NominalType { + override string toString() { result = "StructType" } + + StructDecl getDecl() { + exists(StructDecl x | + struct_types(this, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/SubstitutableType.qll b/swift/ql/lib/codeql/swift/generated/type/SubstitutableType.qll new file mode 100644 index 00000000000..cbe8954f357 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SubstitutableType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SubstitutableTypeBase extends @substitutable_type, Type { } diff --git a/swift/ql/lib/codeql/swift/generated/type/SugarType.qll b/swift/ql/lib/codeql/swift/generated/type/SugarType.qll new file mode 100644 index 00000000000..7bd520f2338 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class SugarTypeBase extends @sugar_type, Type { } diff --git a/swift/ql/lib/codeql/swift/generated/type/SyntaxSugarType.qll b/swift/ql/lib/codeql/swift/generated/type/SyntaxSugarType.qll new file mode 100644 index 00000000000..c13239c9702 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/SyntaxSugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SugarType + +class SyntaxSugarTypeBase extends @syntax_sugar_type, SugarType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/TupleType.qll b/swift/ql/lib/codeql/swift/generated/type/TupleType.qll new file mode 100644 index 00000000000..91adaf4038f --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/TupleType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class TupleTypeBase extends @tuple_type, Type { + override string toString() { result = "TupleType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/Type.qll b/swift/ql/lib/codeql/swift/generated/type/Type.qll new file mode 100644 index 00000000000..cfe4b638da3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/Type.qll @@ -0,0 +1,14 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.Element +import codeql.swift.elements.type.Type + +class TypeBase extends @type, Element { + string getDiagnosticsName() { types(this, result, _) } + + Type getCanonicalType() { + exists(Type x | + types(this, _, x) and + result = x.resolve() + ) + } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/TypeAliasType.qll b/swift/ql/lib/codeql/swift/generated/type/TypeAliasType.qll new file mode 100644 index 00000000000..6807dc7b2a3 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/TypeAliasType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SugarType + +class TypeAliasTypeBase extends @type_alias_type, SugarType { + override string toString() { result = "TypeAliasType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/TypeVariableType.qll b/swift/ql/lib/codeql/swift/generated/type/TypeVariableType.qll new file mode 100644 index 00000000000..85b8fb8c908 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/TypeVariableType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class TypeVariableTypeBase extends @type_variable_type, Type { + override string toString() { result = "TypeVariableType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/UnarySyntaxSugarType.qll b/swift/ql/lib/codeql/swift/generated/type/UnarySyntaxSugarType.qll new file mode 100644 index 00000000000..b72d7335f38 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnarySyntaxSugarType.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.SyntaxSugarType + +class UnarySyntaxSugarTypeBase extends @unary_syntax_sugar_type, SyntaxSugarType { } diff --git a/swift/ql/lib/codeql/swift/generated/type/UnboundGenericType.qll b/swift/ql/lib/codeql/swift/generated/type/UnboundGenericType.qll new file mode 100644 index 00000000000..e5cc43f760e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnboundGenericType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.AnyGenericType + +class UnboundGenericTypeBase extends @unbound_generic_type, AnyGenericType { + override string toString() { result = "UnboundGenericType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/UnknownType.qll b/swift/ql/lib/codeql/swift/generated/type/UnknownType.qll new file mode 100644 index 00000000000..b5c925c0f9e --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnknownType.qll @@ -0,0 +1,8 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class UnknownTypeBase extends @unknown_type, Type { + override string toString() { result = "UnknownType" } + + string getName() { unknown_types(this, result) } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/UnmanagedStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/UnmanagedStorageType.qll new file mode 100644 index 00000000000..4ea8526ebb1 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnmanagedStorageType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ReferenceStorageType + +class UnmanagedStorageTypeBase extends @unmanaged_storage_type, ReferenceStorageType { + override string toString() { result = "UnmanagedStorageType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/UnownedStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/UnownedStorageType.qll new file mode 100644 index 00000000000..8cb1f8cd688 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnownedStorageType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ReferenceStorageType + +class UnownedStorageTypeBase extends @unowned_storage_type, ReferenceStorageType { + override string toString() { result = "UnownedStorageType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/UnresolvedType.qll b/swift/ql/lib/codeql/swift/generated/type/UnresolvedType.qll new file mode 100644 index 00000000000..abab4e4a661 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/UnresolvedType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.Type + +class UnresolvedTypeBase extends @unresolved_type, Type { + override string toString() { result = "UnresolvedType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/VariadicSequenceType.qll b/swift/ql/lib/codeql/swift/generated/type/VariadicSequenceType.qll new file mode 100644 index 00000000000..900b5a8821d --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/VariadicSequenceType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.UnarySyntaxSugarType + +class VariadicSequenceTypeBase extends @variadic_sequence_type, UnarySyntaxSugarType { + override string toString() { result = "VariadicSequenceType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/type/WeakStorageType.qll b/swift/ql/lib/codeql/swift/generated/type/WeakStorageType.qll new file mode 100644 index 00000000000..31a456058ca --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/type/WeakStorageType.qll @@ -0,0 +1,6 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.type.ReferenceStorageType + +class WeakStorageTypeBase extends @weak_storage_type, ReferenceStorageType { + override string toString() { result = "WeakStorageType" } +} diff --git a/swift/ql/lib/codeql/swift/generated/typerepr/TypeRepr.qll b/swift/ql/lib/codeql/swift/generated/typerepr/TypeRepr.qll new file mode 100644 index 00000000000..497ac46fa64 --- /dev/null +++ b/swift/ql/lib/codeql/swift/generated/typerepr/TypeRepr.qll @@ -0,0 +1,4 @@ +// generated by codegen/codegen.py +import codeql.swift.elements.AstNode + +class TypeReprBase extends @type_repr, AstNode { } diff --git a/swift/ql/lib/swift.dbscheme b/swift/ql/lib/swift.dbscheme index 6fc5436d8b7..c3cf84734aa 100644 --- a/swift/ql/lib/swift.dbscheme +++ b/swift/ql/lib/swift.dbscheme @@ -10,7 +10,7 @@ sourceLocationPrefix( answer_to_life_the_universe_and_everything( int answer: int ref -) +); // from codegen/schema.yml