mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +01:00
Fix table padding
This commit is contained in:
@@ -231,7 +231,7 @@ Accesses
|
|||||||
+--------------------------------+---------------------+
|
+--------------------------------+---------------------+
|
||||||
| ``a[i]`` | ArrayAccess_ |
|
| ``a[i]`` | ArrayAccess_ |
|
||||||
+--------------------------------+---------------------+
|
+--------------------------------+---------------------+
|
||||||
| ``f(...)`` | MethodCall_ |
|
| ``f(...)`` | MethodCall_ |
|
||||||
+--------------------------------+ |
|
+--------------------------------+ |
|
||||||
| ``e.m(...)`` | |
|
| ``e.m(...)`` | |
|
||||||
+--------------------------------+---------------------+
|
+--------------------------------+---------------------+
|
||||||
|
|||||||
@@ -72,9 +72,9 @@ After the initial ``import`` statement, this simple query comprises three parts
|
|||||||
+==================================================================================================+===================================================================================================================+===================================================================================================+
|
+==================================================================================================+===================================================================================================================+===================================================================================================+
|
||||||
| ``import java`` | Imports the standard CodeQL libraries for Java and Kotlin. | Every query begins with one or more ``import`` statements. |
|
| ``import java`` | Imports the standard CodeQL libraries for Java and Kotlin. | Every query begins with one or more ``import`` statements. |
|
||||||
+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
||||||
| ``from MethodCall mc`` | Defines the variables for the query. | We use: |
|
| ``from MethodCall mc`` | Defines the variables for the query. | We use: |
|
||||||
| | Declarations are of the form: | |
|
| | Declarations are of the form: | |
|
||||||
| | ``<type> <variable name>`` | - a ``MethodCall`` variable for call expressions |
|
| | ``<type> <variable name>`` | - a ``MethodCall`` variable for call expressions |
|
||||||
+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
+--------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
|
||||||
| ``where mc.getMethod().hasName("equals") and mc.getArgument(0).(StringLiteral).getValue() = ""`` | Defines a condition on the variables. | ``mc.getMethod().hasName("equals")`` restricts ``mc`` to only calls to methods call ``equals``. |
|
| ``where mc.getMethod().hasName("equals") and mc.getArgument(0).(StringLiteral).getValue() = ""`` | Defines a condition on the variables. | ``mc.getMethod().hasName("equals")`` restricts ``mc`` to only calls to methods call ``equals``. |
|
||||||
| | | |
|
| | | |
|
||||||
|
|||||||
Reference in New Issue
Block a user