Interface NewSymbol
-
public interface NewSymbol
This builder is used to define symbol references on files.- Since:
- 5.6
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description NewSymbol
newReference(int startOffset, int endOffset)
Deprecated.since 6.1 Only supported to ease migration from old API.NewSymbol
newReference(int startLine, int startLineOffset, int endLine, int endLineOffset)
Shortcut to avoid callingInputFile.newRange(int, int, int, int)
NewSymbol
newReference(TextRange range)
Register a new symbol.
-
-
-
Method Detail
-
newReference
@Deprecated NewSymbol newReference(int startOffset, int endOffset)
Deprecated.since 6.1 Only supported to ease migration from old API. Please prefer othernewReference()
methods.Register a new symbol reference.- Parameters:
startOffset
- Starting position in file for the declaration of this symbol. Beginning of a file starts with offset '0'.endOffset
- End position in file for this symbol declaration.
-
newReference
NewSymbol newReference(TextRange range)
Register a new symbol.- Parameters:
range
- Range of text for the symbol declaration. See for exampleInputFile.newRange(int, int, int, int)
.
-
newReference
NewSymbol newReference(int startLine, int startLineOffset, int endLine, int endLineOffset)
Shortcut to avoid callingInputFile.newRange(int, int, int, int)
-
-