yoff
5fb75ac987
Python: simplify decorator-detection predicates to pure AST match
...
The internal predicates that identify `@staticmethod`, `@classmethod` and
`@property` decorators previously required the decorator's `NameNode` to
satisfy `isGlobal()` (i.e. no SSA def reaches the decorator's name use).
That filter was correct but unnecessarily indirect: these three names
are builtins, and even when a class body redefines one, the class body
has not started executing at the decorator position, so Python uses the
builtin.
Match the decorator's AST `Name` directly instead, dropping the CFG/SSA
detour. The slight semantic change — `isGlobal()` would have rejected
module-level shadowing of these builtins — is negligible in practice
and explicitly documented in the change note.
`hasContextmanagerDecorator` and `hasOverloadDecorator` keep the
`NameNode.isGlobal()` check because their target names (`contextmanager`,
`overload`) are imported, not builtin, and local shadowing is a real
concern.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-06-01 14:04:43 +00:00
BazookaMusic
c1c9287535
restore file header
2026-06-01 15:48:26 +02:00
BazookaMusic
d1226b71de
formatting
2026-06-01 15:46:52 +02:00
BazookaMusic
71a363545a
formatting
2026-06-01 15:24:06 +02:00
Asger F
3f3bed62d3
yeast: type-check for missing required fields
...
Add FieldCardinality to Schema to track required/multiple per field,
populated from the ast_types.yml suffixes (bare = required single,
? = optional single, + = required multiple, * = optional multiple).
dump_ast_with_type_errors now emits:
<-- ERROR: missing required field 'name'
for any node in the output AST whose declared schema requires a field
that is absent from the actual node.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-06-01 14:18:37 +02:00
Asger F
21f216af8c
yeast-macros: omit empty fields produced by .. splice
...
When a {..expr} splice in an output template is empty (e.g. from an
optional capture that did not match), drop the field entirely rather
than emitting an empty named field. This lets a single rule with
optional captures replace what used to be two near-identical rules.
Also re-renders the corpus to drop the now-suppressed empty fields.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
2026-06-01 14:18:37 +02:00
Asger F
1751d70c62
Fix parsing of corpus tests when --- delimiter is missing
2026-06-01 14:18:37 +02:00
Asger F
ac8eb50c26
Yeast: Allow 'r#type' to escape the 'type' keyword in macro
2026-06-01 14:18:37 +02:00
Asger F
1ecdc3614f
Yeast: Fix matching against extras like comments
2026-06-01 14:18:37 +02:00
Asger F
e3b3888bee
Yeast: Fix handling of captures with multiple results
2026-06-01 14:18:36 +02:00
Asger F
ef9306d82c
Yeast: Allow rules that return an empty sequence
2026-06-01 14:18:36 +02:00
Asger F
56822f8ee1
Tree-sitter-extactor: More helpful panic message
2026-06-01 14:04:49 +02:00
Tom Hvitved
62207f152c
Potential fix for pull request finding
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-06-01 13:55:22 +02:00
Tom Hvitved
d5f94475b5
Rust: DB upgrade/downgrade scripts
2026-06-01 10:38:10 +02:00
Tom Hvitved
00e95a0757
Rust: Add Impl::getSelf() and Impl::getTrait()
2026-06-01 10:38:09 +02:00
Tom Hvitved
c695c151ea
Rust: Rename Impl::getTrait to Impl::getTraitTy
2026-06-01 10:38:07 +02:00
Jeroen Ketema
ab4a575243
Merge pull request #21899 from MathiasVP/use-new-prototype-extensionals
...
C++: Use the new `prototype`-related extensionals in MaD
2026-06-01 10:24:19 +02:00
Tom Hvitved
d2f474d998
Address review comments
2026-06-01 08:30:01 +02:00
Owen Mansel-Chan
b38440490a
Address review comment
2026-05-31 21:47:44 +01:00
Mathias Vorreiter Pedersen
22b08f1ea4
C++: Add a test with a kind of "partial function template" instantiation.
2026-05-31 12:47:31 +02:00
Owen Mansel-Chan
5e5a0437e1
Shared CFG: allow init stmts for IfStmt
2026-05-30 07:35:29 +01:00
Mathias Vorreiter Pedersen
e18448dd59
C++: Add more tests.
2026-05-29 18:22:13 +02:00
Henry Mercer
a16f1c555c
Merge pull request #21912 from github/post-release-prep/codeql-cli-2.25.6
...
Post-release preparation for codeql-cli-2.25.6
2026-05-29 14:43:56 +01:00
Geoffrey White
43c1152634
Merge pull request #21905 from geoffw0/swiftflow2
...
Swift: Update the new metatype sinks
2026-05-29 14:18:45 +01:00
Tom Hvitved
caae5a8bf1
Apply suggestions from code review
...
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com >
2026-05-29 14:24:45 +02:00
github-actions[bot]
cfb18c2477
Post-release preparation for codeql-cli-2.25.6
2026-05-29 12:04:35 +00:00
Henry Mercer
1a82a682e9
Merge pull request #21911 from github/release-prep/2.25.6
...
Release preparation for version 2.25.6
codeql-cli/v2.25.6
2026-05-29 12:28:44 +01:00
github-actions[bot]
8b6f969cdb
Release preparation for version 2.25.6
2026-05-29 11:27:54 +00:00
Henry Mercer
f4da0df3c7
Merge pull request #21910 from github/revert-21892-release-prep/2.25.6
...
Revert "Release preparation for version 2.25.6"
2026-05-29 12:25:55 +01:00
Henry Mercer
9bc0c1b1ab
Revert "Release preparation for version 2.25.6"
2026-05-29 12:13:50 +01:00
Owen Mansel-Chan
aee33a0cc9
Add missing code for TAnyTupleOrDictionaryElement
2026-05-29 10:26:24 +01:00
Anders Schack-Mulligen
4c31866910
Merge pull request #21867 from aschackmull/ruby/callable-body
...
Ruby: Split callable and its body into two AST nodes.
2026-05-29 10:16:19 +02:00
Tom Hvitved
09371339d7
Ruby: Adopt shared local name resolution library
2026-05-29 09:06:14 +02:00
Taus
6165623cbf
Merge pull request #21724 from github/tausbn/python-add-self-validating-cfg-tests
2026-05-28 22:07:55 +02:00
Owen Mansel-Chan
df15a719cb
Add a ContentSet for any tuple or dictionary element
2026-05-28 16:48:23 +01:00
Michael Nebel
2eac8890d3
Merge pull request #21893 from michaelnebel/cshar/updateroslyn
...
C#: Update Roslyn and other pinned depenencies.
2026-05-28 13:49:29 +02:00
Mathias Vorreiter Pedersen
2d581504f7
C++: Fix Copilot comments.
2026-05-28 13:34:18 +02:00
Mathias Vorreiter Pedersen
9f211cebd5
C++: Accept test changes.
2026-05-28 13:34:16 +02:00
Mathias Vorreiter Pedersen
8393b40b59
C++: Use the new extensionals to map template functions and classes to their fully templated versions.
2026-05-28 13:34:12 +02:00
Geoffrey White
f8ab76e1ba
Swift: Update the new metatype sinks to not rely on name matching '.Type'.
2026-05-28 12:14:10 +01:00
Geoffrey White
34d4e9a8e2
Merge pull request #21898 from geoffw0/swiftflow
...
Swift: Extend swift/weak-sensitive-data-hashing, swift/weak-password-hashing sinks
2026-05-28 11:52:32 +01:00
Owen Mansel-Chan
812e8e6b34
Add change note
2026-05-28 11:37:54 +01:00
Owen Mansel-Chan
80c6f082d1
Fix TODO in containerStep
2026-05-28 11:34:02 +01:00
Michael Nebel
ed8b9c29cc
Merge pull request #21866 from michaelnebel/csharp/refreturnindexerproperty
...
C#: Property- and Indexer calls for ref return properties and indexers.
2026-05-28 12:31:17 +02:00
Owen Mansel-Chan
d95d99848c
Build RequestBuilder more realistically
2026-05-28 11:05:40 +01:00
Owen Mansel-Chan
8937e22735
Add summary models for org.apache.http.client.methods.RequestBuilder
...
Generated by GPT 5.3-codex, verified by me.
2026-05-28 10:56:37 +01:00
Owen Mansel-Chan
37589dd8a0
Improve how org.apache.http.client.HttpClient is created in test
2026-05-28 10:30:43 +01:00
Owen Mansel-Chan
a159dc1c66
Change variable name in test
2026-05-28 10:28:14 +01:00
Tom Hvitved
7718fe40a0
Ruby: Add more variable tests
2026-05-28 10:50:15 +02:00
Tom Hvitved
aeb82858d7
Rust: Run codegen
2026-05-28 10:50:13 +02:00