Fix table padding

This commit is contained in:
Owen Mansel-Chan
2025-12-09 01:12:53 +00:00
committed by GitHub
parent 134312173f
commit d15342db1f
2 changed files with 3 additions and 3 deletions

View File

@@ -231,7 +231,7 @@ Accesses
+--------------------------------+---------------------+ +--------------------------------+---------------------+
| ``a[i]`` | ArrayAccess_ | | ``a[i]`` | ArrayAccess_ |
+--------------------------------+---------------------+ +--------------------------------+---------------------+
| ``f(...)`` | MethodCall_ | | ``f(...)`` | MethodCall_ |
+--------------------------------+ | +--------------------------------+ |
| ``e.m(...)`` | | | ``e.m(...)`` | |
+--------------------------------+---------------------+ +--------------------------------+---------------------+

View File

@@ -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``. |
| | | | | | | |