LNode RestOfSpaceDecl(int startIndex, Token kindTok)
{
TokenType la0;
// line 1457
var kind = (Symbol) kindTok.Value;
var name = ComplexNameDecl();
var bases = BaseListOpt();
WhereClausesOpt(ref name);
// Line 1461: (TT.Semicolon | BracedBlock)
la0 = LA0;
if (la0 == TT.Semicolon) {
var end = MatchAny();
// line 1462
return F.Call(kind, name, bases, startIndex, end.EndIndex, kindTok.StartIndex, kindTok.EndIndex);
} else {
var body = BracedBlock(EcsValidators.KeyNameComponentOf(name));
// line 1464
return F.Call(kind, LNode.List(name, bases, body), startIndex, body.Range.EndIndex, kindTok.StartIndex, kindTok.EndIndex);
}
}