Adding getLeadingComments and getTrailingComments methods to scanner.