mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Merge branch 'main' into redsun82/rust-str
This commit is contained in:
@@ -31,14 +31,14 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Expr)
|
||||
@annotate(Expr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
The base class for expressions.
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Pat)
|
||||
@annotate(Pat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
The base class for patterns.
|
||||
@@ -120,7 +120,7 @@ class PathExprBase(Expr):
|
||||
"""
|
||||
|
||||
|
||||
@annotate(PathExpr, replace_bases={Expr: PathExprBase})
|
||||
@annotate(PathExpr, replace_bases={Expr: PathExprBase}, cfg = True)
|
||||
@qltest.test_with(Path)
|
||||
class _:
|
||||
"""
|
||||
@@ -134,7 +134,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(IfExpr)
|
||||
@annotate(IfExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An `if` expression. For example:
|
||||
@@ -153,7 +153,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(LetExpr)
|
||||
@annotate(LetExpr, cfg = True)
|
||||
@rust.doc_test_signature("(maybe_some: Option<String>) -> ()")
|
||||
class _:
|
||||
"""
|
||||
@@ -166,7 +166,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(BlockExpr, replace_bases={Expr: LabelableExpr})
|
||||
@annotate(BlockExpr, replace_bases={Expr: LabelableExpr}, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A block expression. For example:
|
||||
@@ -185,7 +185,7 @@ class _:
|
||||
label: drop
|
||||
|
||||
|
||||
@annotate(LoopExpr, replace_bases={Expr: LoopingExpr})
|
||||
@annotate(LoopExpr, replace_bases={Expr: LoopingExpr}, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A loop expression. For example:
|
||||
@@ -223,7 +223,7 @@ class CallExprBase(Expr):
|
||||
attrs: list["Attr"] | child
|
||||
|
||||
|
||||
@annotate(CallExpr, replace_bases={Expr: CallExprBase})
|
||||
@annotate(CallExpr, replace_bases={Expr: CallExprBase}, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A function call expression. For example:
|
||||
@@ -238,7 +238,7 @@ class _:
|
||||
attrs: drop
|
||||
|
||||
|
||||
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, add_bases=(Resolvable,))
|
||||
@annotate(MethodCallExpr, replace_bases={Expr: CallExprBase}, add_bases=(Resolvable,), cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A method call expression. For example:
|
||||
@@ -271,7 +271,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(MatchExpr)
|
||||
@annotate(MatchExpr, cfg = True)
|
||||
@rust.doc_test_signature("(x: i32) -> i32")
|
||||
class _:
|
||||
"""
|
||||
@@ -291,7 +291,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(ContinueExpr)
|
||||
@annotate(ContinueExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A continue expression. For example:
|
||||
@@ -312,7 +312,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(BreakExpr)
|
||||
@annotate(BreakExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A break expression. For example:
|
||||
@@ -341,7 +341,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(ReturnExpr)
|
||||
@annotate(ReturnExpr, cfg = True)
|
||||
@rust.doc_test_signature(None)
|
||||
class _:
|
||||
"""
|
||||
@@ -359,7 +359,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(BecomeExpr)
|
||||
@annotate(BecomeExpr, cfg = True)
|
||||
@rust.doc_test_signature(None)
|
||||
class _:
|
||||
"""
|
||||
@@ -376,7 +376,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(YieldExpr)
|
||||
@annotate(YieldExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A `yield` expression. For example:
|
||||
@@ -389,7 +389,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(YeetExpr)
|
||||
@annotate(YeetExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A `yeet` expression. For example:
|
||||
@@ -411,7 +411,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RecordExpr)
|
||||
@annotate(RecordExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A record expression. For example:
|
||||
@@ -424,7 +424,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(FieldExpr)
|
||||
@annotate(FieldExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A field access expression. For example:
|
||||
@@ -434,7 +434,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(AwaitExpr)
|
||||
@annotate(AwaitExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An `await` expression. For example:
|
||||
@@ -457,7 +457,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RefExpr)
|
||||
@annotate(RefExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A reference expression. For example:
|
||||
@@ -470,7 +470,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(PrefixExpr)
|
||||
@annotate(PrefixExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A unary operation expression. For example:
|
||||
@@ -482,7 +482,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(BinaryExpr)
|
||||
@annotate(BinaryExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A binary operation expression. For example:
|
||||
@@ -496,7 +496,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RangeExpr)
|
||||
@annotate(RangeExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A range expression. For example:
|
||||
@@ -511,7 +511,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(IndexExpr)
|
||||
@annotate(IndexExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An index expression. For example:
|
||||
@@ -538,7 +538,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(TupleExpr)
|
||||
@annotate(TupleExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A tuple expression. For example:
|
||||
@@ -549,7 +549,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(ArrayExpr)
|
||||
@annotate(ArrayExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An array expression. For example:
|
||||
@@ -560,7 +560,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(LiteralExpr)
|
||||
@annotate(LiteralExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A literal expression. For example:
|
||||
@@ -577,7 +577,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(UnderscoreExpr)
|
||||
@annotate(UnderscoreExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An underscore expression. For example:
|
||||
@@ -587,7 +587,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(OffsetOfExpr)
|
||||
@annotate(OffsetOfExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An `offset_of` expression. For example:
|
||||
@@ -597,7 +597,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(AsmExpr)
|
||||
@annotate(AsmExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An inline assembly expression. For example:
|
||||
@@ -609,7 +609,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(LetStmt)
|
||||
@annotate(LetStmt, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A let statement. For example:
|
||||
@@ -638,7 +638,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(WildcardPat)
|
||||
@annotate(WildcardPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A wildcard pattern. For example:
|
||||
@@ -648,7 +648,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(TuplePat)
|
||||
@annotate(TuplePat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A tuple pattern. For example:
|
||||
@@ -659,7 +659,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(OrPat)
|
||||
@annotate(OrPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
An or pattern. For example:
|
||||
@@ -681,7 +681,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RecordPat)
|
||||
@annotate(RecordPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A record pattern. For example:
|
||||
@@ -694,7 +694,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RangePat)
|
||||
@annotate(RangePat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A range pattern. For example:
|
||||
@@ -708,7 +708,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(SlicePat)
|
||||
@annotate(SlicePat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A slice pattern. For example:
|
||||
@@ -722,7 +722,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(PathPat)
|
||||
@annotate(PathPat, cfg = True)
|
||||
@qltest.test_with(Path)
|
||||
class _:
|
||||
"""
|
||||
@@ -736,7 +736,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(LiteralPat)
|
||||
@annotate(LiteralPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A literal pattern. For example:
|
||||
@@ -749,7 +749,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(IdentPat)
|
||||
@annotate(IdentPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A binding pattern. For example:
|
||||
@@ -768,7 +768,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(TupleStructPat)
|
||||
@annotate(TupleStructPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A tuple struct pattern. For example:
|
||||
@@ -782,7 +782,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RefPat)
|
||||
@annotate(RefPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A reference pattern. For example:
|
||||
@@ -795,7 +795,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(BoxPat)
|
||||
@annotate(BoxPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A box pattern. For example:
|
||||
@@ -808,7 +808,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(ConstBlockPat)
|
||||
@annotate(ConstBlockPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A const block pattern. For example:
|
||||
@@ -1009,7 +1009,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(ForExpr, replace_bases={Expr: LoopingExpr})
|
||||
@annotate(ForExpr, replace_bases={Expr: LoopingExpr}, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A ForExpr. For example:
|
||||
@@ -1041,7 +1041,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(FormatArgsExpr)
|
||||
@annotate(FormatArgsExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A FormatArgsExpr. For example:
|
||||
@@ -1171,7 +1171,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(MacroCall)
|
||||
@annotate(MacroCall, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A MacroCall. For example:
|
||||
@@ -1192,7 +1192,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(MacroExpr)
|
||||
@annotate(MacroExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A MacroExpr. For example:
|
||||
@@ -1215,7 +1215,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(MacroPat)
|
||||
@annotate(MacroPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A MacroPat. For example:
|
||||
@@ -1318,7 +1318,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(Param)
|
||||
@annotate(Param, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A Param. For example:
|
||||
@@ -1457,7 +1457,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(RestPat)
|
||||
@annotate(RestPat, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A RestPat. For example:
|
||||
@@ -1487,7 +1487,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(SelfParam)
|
||||
@annotate(SelfParam, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A SelfParam. For example:
|
||||
@@ -1584,7 +1584,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(TryExpr)
|
||||
@annotate(TryExpr, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A TryExpr. For example:
|
||||
@@ -1764,7 +1764,7 @@ class _:
|
||||
"""
|
||||
|
||||
|
||||
@annotate(WhileExpr, replace_bases={Expr: LoopingExpr})
|
||||
@annotate(WhileExpr, replace_bases={Expr: LoopingExpr}, cfg = True)
|
||||
class _:
|
||||
"""
|
||||
A WhileExpr. For example:
|
||||
|
||||
Reference in New Issue
Block a user