Skip to content

Kotlin: Mention Literal::getLiteral() difference from source code#14584

Merged
aschackmull merged 1 commit into
github:mainfrom
Marcono1234:kotlin-Literal-getLiteral
Oct 26, 2023
Merged

Kotlin: Mention Literal::getLiteral() difference from source code#14584
aschackmull merged 1 commit into
github:mainfrom
Marcono1234:kotlin-Literal-getLiteral

Conversation

@Marcono1234

Copy link
Copy Markdown
Contributor

It appears the Kotlin extractor does not have access to the actual string representation in the source code, and for most literal types uses simply the represented value also as getLiteral result, see https://github.com/github/codeql/blob/codeql-cli/v2.15.1/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt#L4443

And also #11296

Feedback, especially regarding the wording, is appreciated.

It appears the Kotlin extractor does not have access to the actual
string representation in the source code, and for most literal types
uses simply the represented value also as `getLiteral` result, see
https://github.com/github/codeql/blob/codeql-cli/v2.15.1/java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt#L4443
@Marcono1234 Marcono1234 requested a review from a team as a code owner October 25, 2023 00:07
@github-actions github-actions Bot added the Java label Oct 25, 2023

@aschackmull aschackmull left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Oct 25, 2023
@aschackmull aschackmull merged commit ec58b20 into github:main Oct 26, 2023
@Marcono1234 Marcono1234 deleted the kotlin-Literal-getLiteral branch October 26, 2023 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Java no-change-note-required This PR does not need a change note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants