@Beta public interface SymbolTableBuilder
Modifier and Type | Method and Description |
---|---|
void |
done()
Call this method only once when your are done with defining symbols of the file.
|
void |
newReference(Symbol symbol,
int fromOffset)
Records that a
Symbol is referenced at another location in the same file. |
Symbol |
newSymbol(int fromOffset,
int toOffset)
Create a new symbol.
|
Symbol newSymbol(int fromOffset, int toOffset)
fromOffset
- Starting offset in a file for the symbol declaration. File starts at offset '0'.toOffset
- Ending offset of symbol declaration.newReference(Symbol, int)
void newReference(Symbol symbol, int fromOffset)
Symbol
is referenced at another location in the same file.symbol
- Symbol previously created with newSymbol(int, int)
fromOffset
- Starting offset of the place symbol is referenced. No need for end offset here since we assume it is same length.void done()
Copyright © 2009–2015 SonarSource. All rights reserved.