From cac3862659877bdcc1a7b0d8accc70ffdd39b4c1 Mon Sep 17 00:00:00 2001 From: Rasmus Lerchedahl Petersen Date: Mon, 31 Jan 2022 08:50:37 +0100 Subject: [PATCH] python: remove library annotation to clean up QL warnings. Should put these in a private module instead? --- python/ql/lib/semmle/python/AstExtended.qll | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/python/ql/lib/semmle/python/AstExtended.qll b/python/ql/lib/semmle/python/AstExtended.qll index 58042cd8dbf..2d1a2be7c54 100644 --- a/python/ql/lib/semmle/python/AstExtended.qll +++ b/python/ql/lib/semmle/python/AstExtended.qll @@ -62,33 +62,33 @@ abstract class AstNode extends AstNode_ { /* Parents */ /** Internal implementation class */ -library class FunctionParent extends FunctionParent_ { } +class FunctionParent extends FunctionParent_ { } /** Internal implementation class */ -library class ArgumentsParent extends ArgumentsParent_ { } +class ArgumentsParent extends ArgumentsParent_ { } /** Internal implementation class */ -library class ExprListParent extends ExprListParent_ { } +class ExprListParent extends ExprListParent_ { } /** Internal implementation class */ -library class ExprContextParent extends ExprContextParent_ { } +class ExprContextParent extends ExprContextParent_ { } /** Internal implementation class */ -library class StmtListParent extends StmtListParent_ { } +class StmtListParent extends StmtListParent_ { } /** Internal implementation class */ -library class StrListParent extends StrListParent_ { } +class StrListParent extends StrListParent_ { } /** Internal implementation class */ -library class ExprParent extends ExprParent_ { } +class ExprParent extends ExprParent_ { } /** Internal implementation class */ class PatternListParent extends PatternListParent_ { } /** Internal implementation class */ -library class PatternParent extends PatternParent_ { } +class PatternParent extends PatternParent_ { } -library class DictItem extends DictItem_, AstNode { +class DictItem extends DictItem_, AstNode { override string toString() { result = DictItem_.super.toString() } override AstNode getAChildNode() { none() } @@ -171,9 +171,9 @@ class ExprList extends ExprList_ { /** A list of patterns */ class PatternList extends PatternList_ { } -library class DictItemList extends DictItemList_ { } +class DictItemList extends DictItemList_ { } -library class DictItemListParent extends DictItemListParent_ { } +class DictItemListParent extends DictItemListParent_ { } /** A list of strings (the primitive type string not Bytes or Unicode) */ class StringList extends StringList_ { }