Interface NewSymbol
-
public interface NewSymbolThis 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 NewSymbolnewReference(int startOffset, int endOffset)Deprecated.since 6.1 Only supported to ease migration from old API.NewSymbolnewReference(int startLine, int startLineOffset, int endLine, int endLineOffset)Shortcut to avoid callingInputFile.newRange(int, int, int, int)NewSymbolnewReference(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)
-
-