Add cast phrase kind to parser
This commit is contained in:
parent
308996f059
commit
6dfde851e5
@ -314,6 +314,8 @@ func (parser *parsingOperation) parsePhraseCommand () (
|
|||||||
switch identifier.trail[0] {
|
switch identifier.trail[0] {
|
||||||
case "loc":
|
case "loc":
|
||||||
kind = PhraseKindReference
|
kind = PhraseKindReference
|
||||||
|
case "cast":
|
||||||
|
kind = PhraseKindCast
|
||||||
case "defer":
|
case "defer":
|
||||||
kind = PhraseKindDefer
|
kind = PhraseKindDefer
|
||||||
case "if":
|
case "if":
|
||||||
|
@ -236,6 +236,7 @@ const (
|
|||||||
PhraseKindOperator
|
PhraseKindOperator
|
||||||
PhraseKindAssign
|
PhraseKindAssign
|
||||||
PhraseKindReference
|
PhraseKindReference
|
||||||
|
PhraseKindCast
|
||||||
PhraseKindDefer
|
PhraseKindDefer
|
||||||
PhraseKindIf
|
PhraseKindIf
|
||||||
PhraseKindElseIf
|
PhraseKindElseIf
|
||||||
|
Reference in New Issue
Block a user