minor refactoring in semantic error reporting
removing static line context from the syntax tree