private void generateSyntaxErrorMessage ( SourceUnit sourceUnit , AnnotationNode node , String msg ) { SyntaxException error = new SyntaxException ( msg , node . getLineNumber ( ) , node . getColumnNumber ( ) ) ; sourceUnit . getErrorCollector ( ) . addErrorAndContinue ( new SyntaxErrorMessage ( error , sourceUnit ) ) ; }
Generates a SyntaxErrorMessage based on the current SourceUnit AnnotationNode and a specified error message .