Skip to content

Commit

Permalink
Added MODIFIER_KEYWORD_ONLY_ARGUMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Aug 7, 2024
1 parent 34c7d5e commit 664e749
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import de.fraunhofer.aisec.cpg.frontends.Language
import de.fraunhofer.aisec.cpg.frontends.of
import de.fraunhofer.aisec.cpg.graph.HasOverloadedOperation
import de.fraunhofer.aisec.cpg.graph.autoType
import de.fraunhofer.aisec.cpg.graph.declarations.ParameterDeclaration
import de.fraunhofer.aisec.cpg.graph.scopes.Symbol
import de.fraunhofer.aisec.cpg.graph.statements.expressions.BinaryOperator
import de.fraunhofer.aisec.cpg.graph.statements.expressions.UnaryOperator
Expand Down Expand Up @@ -163,10 +164,16 @@ class PythonLanguage :
companion object {
/**
* This is a "modifier" to differentiate parameters in functions that are "positional" only.
* This information will be stored in
* [de.fraunhofer.aisec.cpg.graph.declarations.ParameterDeclaration.modifiers] so that we
* can use is later in call resolving.
* This information will be stored in [ParameterDeclaration.modifiers] so that we can use is
* later in call resolving.
*/
const val MODIFIER_POSITIONAL_ONLY_ARGUMENT = "posonlyarg"

/**
* This is a "modifier" to differentiate parameters in functions that are "keyword" only.
* This information will be stored in [ParameterDeclaration.modifiers] so that we can use is
* later in call resolving.
*/
const val MODIFIER_KEYWORD_ONLY_ARGUMENT = "kwonlyarg"
}
}

0 comments on commit 664e749

Please sign in to comment.