Uses of Class
codeanalysis.text.TextSpan
Packages that use TextSpan
-
Uses of TextSpan in codeanalysis
Methods in codeanalysis that return TextSpanModifier and TypeMethodDescriptionDiagnostic.getSpan()Gets the TextSpan representing the location of the issue in the source code.Methods in codeanalysis with parameters of type TextSpanModifier and TypeMethodDescriptionvoidDiagnosticBox.reportInvalidNumber(TextSpan span, String text, Class<Integer> type) Reports an error for an invalid number with the specified TextSpan, number text, and expected type.voidDiagnosticBox.reportUndefinedBinaryOperator(TextSpan span, String data, Class<?> leftType, Class<?> rightType) Reports an error for an undefined binary operator with the specified TextSpan, operator data, left type, and right type.voidDiagnosticBox.reportUndefinedName(TextSpan span, String name) Reports an undefined name diagnostic with the specified span and name.voidDiagnosticBox.reportUndefinedUnaryOperator(TextSpan span, String data, Class<?> operandType) Reports an error for an undefined unary operator with the specified TextSpan, operator data, and operand type.voidDiagnosticBox.reportUnexpectedToken(TextSpan span, SyntaxType actualType, SyntaxType expectedType) Reports an error for an unexpected token with the specified TextSpan, actual type, and expected type.Constructors in codeanalysis with parameters of type TextSpanModifierConstructorDescriptionDiagnostic(TextSpan span, String message) Constructs a Diagnostic object with the specified TextSpan and error message. -
Uses of TextSpan in codeanalysis.syntax
Fields in codeanalysis.syntax declared as TextSpanMethods in codeanalysis.syntax that return TextSpan -
Uses of TextSpan in codeanalysis.text
Methods in codeanalysis.text that return TextSpanModifier and TypeMethodDescriptionstatic TextSpanTextSpan.fromBounds(int start, int end) Creates a new instance of the TextSpan class with the specified start and end positions.TextLine.getSpan()Retrieves the span of the text line.TextLine.getSpanIncludingLineBreak()Retrieves the span of the text line including line break.Methods in codeanalysis.text with parameters of type TextSpan