mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
renamed "classdeclstmt" to "class_decl_stmt"
This commit is contained in:
@@ -274,7 +274,7 @@ class ClassDefinition extends @classdefinition, ClassOrInterface, AST::ValueNode
|
|||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
class ClassDeclStmt extends @classdeclstmt, ClassDefinition, Stmt {
|
class ClassDeclStmt extends @class_decl_stmt, ClassDefinition, Stmt {
|
||||||
override ControlFlowNode getFirstControlFlowNode() {
|
override ControlFlowNode getFirstControlFlowNode() {
|
||||||
if has_declare_keyword(this) then result = this else result = getIdentifier()
|
if has_declare_keyword(this) then result = this else result = getIdentifier()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -175,7 +175,7 @@ case @stmt.kind of
|
|||||||
| 23 = @let_stmt
|
| 23 = @let_stmt
|
||||||
| 24 = @legacy_let_stmt
|
| 24 = @legacy_let_stmt
|
||||||
| 25 = @for_each_stmt
|
| 25 = @for_each_stmt
|
||||||
| 26 = @classdeclstmt
|
| 26 = @class_decl_stmt
|
||||||
| 27 = @importdeclaration
|
| 27 = @importdeclaration
|
||||||
| 28 = @exportalldeclaration
|
| 28 = @exportalldeclaration
|
||||||
| 29 = @exportdefaultdeclaration
|
| 29 = @exportdefaultdeclaration
|
||||||
@@ -200,7 +200,7 @@ case @stmt.kind of
|
|||||||
|
|
||||||
is_instantiated(unique int decl: @namespace_declaration ref);
|
is_instantiated(unique int decl: @namespace_declaration ref);
|
||||||
|
|
||||||
@declarable_node = @declstmt | @namespace_declaration | @classdeclstmt | @function_decl_stmt | @enumdeclaration | @external_module_declaration | @global_augmentation_declaration | @field;
|
@declarable_node = @declstmt | @namespace_declaration | @class_decl_stmt | @function_decl_stmt | @enumdeclaration | @external_module_declaration | @global_augmentation_declaration | @field;
|
||||||
has_declare_keyword(unique int stmt: @declarable_node ref);
|
has_declare_keyword(unique int stmt: @declarable_node ref);
|
||||||
|
|
||||||
is_for_await_of(unique int forof: @for_of_stmt ref);
|
is_for_await_of(unique int forof: @for_of_stmt ref);
|
||||||
@@ -393,7 +393,7 @@ case @expr.kind of
|
|||||||
|
|
||||||
@typeassertion = @astypeassertion | @prefixtypeassertion;
|
@typeassertion = @astypeassertion | @prefixtypeassertion;
|
||||||
|
|
||||||
@classdefinition = @classdeclstmt | @classexpr;
|
@classdefinition = @class_decl_stmt | @classexpr;
|
||||||
@interfacedefinition = @interfacedeclaration | @interface_typeexpr;
|
@interfacedefinition = @interfacedeclaration | @interface_typeexpr;
|
||||||
@class_or_interface = @classdefinition | @interfacedefinition;
|
@class_or_interface = @classdefinition | @interfacedefinition;
|
||||||
|
|
||||||
@@ -518,7 +518,7 @@ is_method (int id: @property ref);
|
|||||||
is_static (int id: @property ref);
|
is_static (int id: @property ref);
|
||||||
is_abstract_member (int id: @property ref);
|
is_abstract_member (int id: @property ref);
|
||||||
is_const_enum (int id: @enumdeclaration ref);
|
is_const_enum (int id: @enumdeclaration ref);
|
||||||
is_abstract_class (int id: @classdeclstmt ref);
|
is_abstract_class (int id: @class_decl_stmt ref);
|
||||||
|
|
||||||
has_public_keyword (int id: @property ref);
|
has_public_keyword (int id: @property ref);
|
||||||
has_private_keyword (int id: @property ref);
|
has_private_keyword (int id: @property ref);
|
||||||
@@ -1130,7 +1130,7 @@ xmllocations(
|
|||||||
|
|
||||||
@xmllocatable = @xmlcharacters | @xmlelement | @xmlcomment | @xmlattribute | @xmldtd | @file | @xmlnamespace;
|
@xmllocatable = @xmlcharacters | @xmlelement | @xmlcomment | @xmlattribute | @xmldtd | @file | @xmlnamespace;
|
||||||
|
|
||||||
@dataflownode = @expr | @function_decl_stmt | @classdeclstmt | @namespace_declaration | @enumdeclaration | @property;
|
@dataflownode = @expr | @function_decl_stmt | @class_decl_stmt | @namespace_declaration | @enumdeclaration | @property;
|
||||||
|
|
||||||
@optionalchainable = @callexpr | @propaccess;
|
@optionalchainable = @callexpr | @propaccess;
|
||||||
|
|
||||||
|
|||||||
@@ -158,7 +158,7 @@
|
|||||||
<v>1</v>
|
<v>1</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
<k>@classdeclstmt</k>
|
<k>@class_decl_stmt</k>
|
||||||
<v>41</v>
|
<v>41</v>
|
||||||
</e>
|
</e>
|
||||||
<e>
|
<e>
|
||||||
|
|||||||
Reference in New Issue
Block a user