зеркало из https://github.com/github/codeql.git
renamed "isAbstractClass" to "is_abstract_class"
This commit is contained in:
Родитель
a0afcaa3a8
Коммит
29e5bdb4d7
|
@ -1287,7 +1287,7 @@ public class ASTExtractor {
|
|||
trapwriter.addTuple("has_declare_keyword", lbl);
|
||||
}
|
||||
if (nd.hasAbstractKeyword()) {
|
||||
trapwriter.addTuple("isAbstractClass", lbl);
|
||||
trapwriter.addTuple("is_abstract_class", lbl);
|
||||
}
|
||||
return visit(nd.getClassDef(), lbl, nd, false);
|
||||
}
|
||||
|
|
|
@ -107,7 +107,7 @@ stmts(#20037,26,#20001,0,"abstrac ... F>\n {}")
|
|||
locations_default(#20038,#10000,1,1,2,4)
|
||||
hasLocation(#20037,#20038)
|
||||
stmt_containers(#20037,#20001)
|
||||
isAbstractClass(#20037)
|
||||
is_abstract_class(#20037)
|
||||
#20039=*
|
||||
exprs(#20039,78,#20037,0,"C")
|
||||
hasLocation(#20039,#20011)
|
||||
|
|
|
@ -724,7 +724,7 @@ stmts(#20260,26,#20001,1,"abstrac ... mber;\n}")
|
|||
locations_default(#20261,#10000,4,1,15,1)
|
||||
hasLocation(#20260,#20261)
|
||||
stmt_containers(#20260,#20001)
|
||||
isAbstractClass(#20260)
|
||||
is_abstract_class(#20260)
|
||||
#20262=*
|
||||
exprs(#20262,78,#20260,0,"C")
|
||||
hasLocation(#20262,#20091)
|
||||
|
@ -941,7 +941,7 @@ locations_default(#20313,#10000,18,1,29,1)
|
|||
hasLocation(#20312,#20313)
|
||||
stmt_containers(#20312,#20001)
|
||||
has_declare_keyword(#20312)
|
||||
isAbstractClass(#20312)
|
||||
is_abstract_class(#20312)
|
||||
#20314=*
|
||||
exprs(#20314,78,#20312,0,"D")
|
||||
hasLocation(#20314,#20174)
|
||||
|
|
|
@ -4175,7 +4175,7 @@ stmts(#21350,26,#20001,44,"abstrac ... ): T;\n}")
|
|||
locations_default(#21351,#10000,54,1,57,1)
|
||||
hasLocation(#21350,#21351)
|
||||
stmt_containers(#21350,#20001)
|
||||
isAbstractClass(#21350)
|
||||
is_abstract_class(#21350)
|
||||
#21352=*
|
||||
exprs(#21352,78,#21350,0,"GenericClass")
|
||||
hasLocation(#21352,#20801)
|
||||
|
|
|
@ -165,3 +165,8 @@ deprecated predicate isAbstractMember(Property prop) { is_abstract_member(prop)
|
|||
* Use `EnumDeclaration#isConst()` instead.
|
||||
*/
|
||||
deprecated predicate isConstEnum(EnumDeclaration id) { is_const_enum(id) }
|
||||
/**
|
||||
* Alias for the predicate `is_abstract_class` defined in the .dbscheme.
|
||||
* Use `ClassDefinition#isAbstract()` instead.
|
||||
*/
|
||||
deprecated predicate isAbstractClass(ClassDeclStmt id) { is_abstract_class(id) }
|
||||
|
|
|
@ -215,7 +215,7 @@ class ClassDefinition extends @classdefinition, ClassOrInterface, AST::ValueNode
|
|||
/**
|
||||
* Holds if this class has the `abstract` modifier.
|
||||
*/
|
||||
override predicate isAbstract() { isAbstractClass(this) }
|
||||
override predicate isAbstract() { is_abstract_class(this) }
|
||||
|
||||
override string describe() {
|
||||
if exists(inferNameFromVarDef())
|
||||
|
|
|
@ -518,7 +518,7 @@ is_method (int id: @property ref);
|
|||
is_static (int id: @property ref);
|
||||
is_abstract_member (int id: @property ref);
|
||||
is_const_enum (int id: @enumdeclaration ref);
|
||||
isAbstractClass (int id: @classdeclstmt ref);
|
||||
is_abstract_class (int id: @classdeclstmt ref);
|
||||
|
||||
hasPublicKeyword (int id: @property ref);
|
||||
hasPrivateKeyword (int id: @property ref);
|
||||
|
|
|
@ -8407,7 +8407,7 @@
|
|||
<dependencies/>
|
||||
</relation>
|
||||
<relation>
|
||||
<name>isAbstractClass</name>
|
||||
<name>is_abstract_class</name>
|
||||
<cardinality>116</cardinality>
|
||||
<columnsizes>
|
||||
<e>
|
||||
|
|
|
@ -40,3 +40,5 @@ is_abstract_member.rel: reorder isAbstractMember.rel(int prop) prop
|
|||
isAbstractMember.rel: delete
|
||||
is_const_enum.rel: reorder isConstEnum.rel(int id) id
|
||||
isConstEnum.rel: delete
|
||||
is_abstract_class.rel: reorder isAbstractClass.rel(int id) id
|
||||
isAbstractClass.rel: delete
|
||||
|
|
Загрузка…
Ссылка в новой задаче