mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
Deduplication of `ConcreteVarDecl` is triggered only if its `DeclContext` is not local. This avoids a mangled name conflict. Also added more thourough tests for `ConcreteVarDecl` and `ParamDecl`.
15 lines
491 B
Plaintext
15 lines
491 B
Plaintext
// generated by codegen/codegen.py
|
|
import codeql.swift.elements
|
|
import TestUtils
|
|
|
|
from ParamDecl x, Type getInterfaceType, string getName, Type getType, string isInout
|
|
where
|
|
toBeTested(x) and
|
|
not x.isUnknown() and
|
|
getInterfaceType = x.getInterfaceType() and
|
|
getName = x.getName() and
|
|
getType = x.getType() and
|
|
if x.isInout() then isInout = "yes" else isInout = "no"
|
|
select x, "getInterfaceType:", getInterfaceType, "getName:", getName, "getType:", getType,
|
|
"isInout:", isInout
|