Merge pull request #9181 from Marcono1234/marcono1234/FloatingPointLiteral-rename

Java: Rename `FloatingPointLiteral` to `FloatLiteral`
This commit is contained in:
Anders Schack-Mulligen
2022-05-17 10:08:49 +02:00
committed by GitHub
9 changed files with 19 additions and 22 deletions

View File

@@ -15,9 +15,9 @@
| literals.kt:17:30:17:33 | 15 | LongLiteral |
| literals.kt:18:30:18:39 | 11 | LongLiteral |
| literals.kt:19:30:19:38 | 1234567 | LongLiteral |
| literals.kt:20:32:20:35 | 0.0 | FloatingPointLiteral |
| literals.kt:21:32:21:37 | 123.4 | FloatingPointLiteral |
| literals.kt:22:32:22:38 | -123.4 | FloatingPointLiteral |
| literals.kt:20:32:20:35 | 0.0 | FloatLiteral |
| literals.kt:21:32:21:37 | 123.4 | FloatLiteral |
| literals.kt:22:32:22:38 | -123.4 | FloatLiteral |
| literals.kt:23:34:23:36 | 0.0 | DoubleLiteral |
| literals.kt:24:34:24:38 | 123.4 | DoubleLiteral |
| literals.kt:25:34:25:39 | -123.4 | DoubleLiteral |

View File

@@ -3,7 +3,7 @@ fields/FieldTest.java:
# 3| 1: [Class] FieldTest
# 4| 4: [FieldDeclaration] float ff, ...;
# 4| -1: [TypeAccess] float
# 4| 1: [FloatingPointLiteral] 2.3f
# 4| 1: [FloatLiteral] 2.3f
# 5| 5: [FieldDeclaration] Object obj, ...;
# 5| -1: [TypeAccess] Object
# 5| 0: [NullLiteral] null

View File

@@ -1,4 +1,4 @@
import semmle.code.java.Expr
from FloatingPointLiteral lit
from FloatLiteral lit
select lit, lit.getValue(), lit.getFloatValue()

View File

@@ -4,6 +4,6 @@ from Literal l
where
l instanceof IntegerLiteral or
l instanceof LongLiteral or
l instanceof FloatingPointLiteral or
l instanceof FloatLiteral or
l instanceof DoubleLiteral
select l, l.getValue(), l.getParent()