static bool IsBlockKw(byte tk) { switch (tk) { case DTokens.Enum: case DTokens.Alias: case DTokens.This: // ctor case DTokens.If: case DTokens.Static: case DTokens.Assert: case DTokens.Mixin: case DTokens.Import: case DTokens.Module: case DTokens.Unittest: case DTokens.New: case DTokens.Version: case DTokens.Debug: return(true); default: return(DTokens.IsBasicType(tk) || DTokens.IsClassLike(tk) || DTokens.IsStorageClass(tk) || DTokens.IsParamModifier(tk) || DTokens.IsVisibilityModifier(tk)); } }