mirror of
https://github.com/github/codeql.git
synced 2026-01-29 22:32:58 +01:00
Merge pull request #24 from sauyon/runelit
Add a RuneLit alias for CharLit
This commit is contained in:
@@ -218,7 +218,7 @@ class FloatLit extends @floatlit, BasicLit { }
|
||||
class ImagLit extends @imaglit, BasicLit { }
|
||||
|
||||
/**
|
||||
* A character literal.
|
||||
* A rune literal.
|
||||
*/
|
||||
class CharLit extends @charlit, BasicLit {
|
||||
// use the constant value of the literal as the string value, as the value we get from the
|
||||
@@ -226,6 +226,8 @@ class CharLit extends @charlit, BasicLit {
|
||||
override string getStringValue() { result = this.getValue() }
|
||||
}
|
||||
|
||||
class RuneLit = CharLit;
|
||||
|
||||
/**
|
||||
* A string literal.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user