mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
- Only cache on `AttributeData` and not the parent entity. - Move `CreateGeneratedExpressionFromArgument` to `Expression.cs`. - Restructure the various `CreateGenerated` methods so child entities are created inside them (and therefore no need to expose child index logic). - Add locations to generated expressions. - Avoid linear lookup in `CompilationUnit.cs`. - Consolidate tests.
8 lines
275 B
Plaintext
8 lines
275 B
Plaintext
import csharp
|
|
|
|
from Attributable element, Attribute attribute
|
|
where
|
|
attribute = element.getAnAttribute() and
|
|
(element.(Element).fromSource() or element.(Assembly).getName() in ["attributes", "Assembly1"])
|
|
select element, attribute, attribute.getType().getQualifiedName()
|