Merge pull request #24 from sauyon/runelit

Add a RuneLit alias for CharLit
This commit is contained in:
Max Schaefer
2020-02-13 09:07:38 +00:00
committed by GitHub

View File

@@ -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.
*/