accept

fun accept(fileType: FileType): Boolean(source)

Checks if the parser accepts the given file type.

Return

True if the parser accepts the file type, false otherwise.

Parameters

fileType

The file type to check.