@Test public void test_empty_input() throws Exception { highlight("<?php "); checkNoSymbolExists(1, 1); }
public void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable) { for (Symbol symbol : ((SymbolTableImpl) symbolTable).getSymbols()) { SyntaxToken token = symbol.declaration().token(); NewSymbol newSymbol = newSymbolTable.newSymbol(token.line(), token.column(), token.endLine(), token.endColumn()); for (SyntaxToken usageToken : symbol.usages()) { newSymbol.newReference(usageToken.line(), usageToken.column(), usageToken.endLine(), usageToken.endColumn()); } } }
SymbolHighlighter { public void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable) { for (Symbol symbol : ((SymbolTableImpl) symbolTable).getSymbols()) { SyntaxToken token = symbol.declaration().token(); NewSymbol newSymbol = newSymbolTable.newSymbol(token.line(), token.column(), token.endLine(), token.endColumn()); for (SyntaxToken usageToken : symbol.usages()) { newSymbol.newReference(usageToken.line(), usageToken.column(), usageToken.endLine(), usageToken.endColumn()); } } } }
SymbolHighlighter { public void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable) { for (Symbol symbol : ((SymbolTableImpl) symbolTable).getSymbols()) { SyntaxToken token = symbol.declaration().token(); NewSymbol newSymbol = newSymbolTable.newSymbol(token.line(), token.column(), token.endLine(), token.endColumn()); for (SyntaxToken usageToken : symbol.usages()) { newSymbol.newReference(usageToken.line(), usageToken.column(), usageToken.endLine(), usageToken.endColumn()); } } }  }
SymbolHighlighter { public void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable) { for (Symbol symbol : ((SymbolTableImpl) symbolTable).getSymbols()) { SyntaxToken token = symbol.declaration().token(); NewSymbol newSymbol = newSymbolTable.newSymbol(token.line(), token.column(), token.endLine(), token.endColumn()); for (SyntaxToken usageToken : symbol.usages()) { newSymbol.newReference(usageToken.line(), usageToken.column(), usageToken.endLine(), usageToken.endColumn()); } } }  void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable); }
SymbolHighlighter { public void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable) { for (Symbol symbol : ((SymbolTableImpl) symbolTable).getSymbols()) { SyntaxToken token = symbol.declaration().token(); NewSymbol newSymbol = newSymbolTable.newSymbol(token.line(), token.column(), token.endLine(), token.endColumn()); for (SyntaxToken usageToken : symbol.usages()) { newSymbol.newReference(usageToken.line(), usageToken.column(), usageToken.endLine(), usageToken.endColumn()); } } }  void highlight(SymbolTable symbolTable, NewSymbolTable newSymbolTable);  }