1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

SelectorExpr; receivers; struct field check; if expression

This commit is contained in:
Alexander Medvednikov
2020-01-02 20:09:15 +01:00
parent 3c65af8b9a
commit 492dfebd15
15 changed files with 278 additions and 55 deletions

View File

@@ -311,6 +311,9 @@ pub const (
// Precedence returns a tokens precedence if defined, otherwise lowest_prec
pub fn (tok Token) precedence() int {
match tok.kind {
.dot {
return 8
}
// `++` | `--`
.inc, .dec {
return 7