fromValidIdentifier static method

StartBlock fromValidIdentifier(
  1. BlockTypeKeyword blockTypeKeyword,
  2. Iterable<Identifierable> identifierables
)

Implementation

static StartBlock fromValidIdentifier(BlockTypeKeyword blockTypeKeyword, Iterable<Identifierable> identifierables) {

    return StartBlock(
        StartCurlyBracket(),
        BlockType.fromBlockTypeKeyword(blockTypeKeyword),
        ListOfWhiteSpace.fromIterable([Space()]),
        ValidIdentifier.fromIterable(identifierables),
        EndCurlyBracket(),
    );

}