Add new TYPE_BOUND_LIST and TYPE_BOUND syntax kinds

These are now used when parsing type bounds. In addition parsing paths inside a
bound now does not recursively parse paths, rather they are treated as separate
bounds, separated by +.
This commit is contained in:
Ville Penttinen 2019-03-30 17:11:21 +02:00
parent 9ebd14a14e
commit 23fdc562bf
5 changed files with 95 additions and 2 deletions

View file

@ -228,6 +228,8 @@ pub enum SyntaxKind {
PARAM,
SELF_PARAM,
ARG_LIST,
TYPE_BOUND,
TYPE_BOUND_LIST,
}
use self::SyntaxKind::*;
@ -567,6 +569,8 @@ impl SyntaxKind {
PARAM => &SyntaxInfo { name: "PARAM" },
SELF_PARAM => &SyntaxInfo { name: "SELF_PARAM" },
ARG_LIST => &SyntaxInfo { name: "ARG_LIST" },
TYPE_BOUND => &SyntaxInfo { name: "TYPE_BOUND" },
TYPE_BOUND_LIST => &SyntaxInfo { name: "TYPE_BOUND_LIST" },
TOMBSTONE => &SyntaxInfo { name: "TOMBSTONE" },
EOF => &SyntaxInfo { name: "EOF" },
}