Invalid token 'token' in class, struct, or interface member declaration
This error is generated whenever a token is encountered in a location where it does not belong. A token is a keyword; an identifier (the name of a class, struct, method, and so on); a string, character, or numeric literal value such as 108, "Hello", or 'A'; or an operator or punctuator such as == or ;.
Any class, struct, or interface member declaration that contains invalid modifiers before the type will generate this error. To fix the error, remove the invalid modifiers.
The following sample generates XS1519 in five places because tokens are placed in locations where they are not valid:
// XS1519.prg
// Generates XS1519 because a class name cannot be a number: