Lines Matching refs:symbol

237      * the type, and an array of (symbol, line) pairs for the definitions of
242 // No definitions, no symbol table to write
246 // We want the symbol table to be sorted
250 // Order by symbol name, and then by line number if multiple
251 // definitions use the same symbol name
252 int ret = tag1.symbol.compareTo(tag2.symbol);
297 out.append(Util.jsStringLiteral(tag.symbol));
341 * Write a symbol and generate links as appropriate.
343 * @param symbol the symbol to write
345 * will be generated if the symbol is a keyword)
346 * @param line the line number on which the symbol appears
349 protected void writeSymbol(String symbol, Set<String> keywords, int line)
351 writeSymbol(symbol, keywords, line, true);
355 * Write a symbol and generate links as appropriate.
357 * @param symbol the symbol to write
359 * will be generated if the symbol is a keyword)
360 * @param line the line number on which the symbol appears
365 String symbol, Set<String> keywords, int line, boolean caseSensitive)
371 caseSensitive ? symbol : symbol.toLowerCase())) {
373 out.append("<b>").append(symbol).append("</b>");
375 } else if (defs != null && defs.hasDefinitionAt(symbol, line, strs)) {
376 // This is the definition of the symbol.
386 // do this when there's exactly one definition of the symbol in
392 out.append(symbol);
395 // 2) Create a link that searches for all references to this symbol.
399 out.append(symbol);
404 out.append(symbol);
407 } else if (defs != null && defs.occurrences(symbol) == 1) {
408 // This is a reference to a symbol defined exactly once in this file.
411 // Generate a direct link to the symbol definition.
415 out.append(symbol);
417 out.append(symbol);
421 // This is a symbol that is not defined in this file, or a symbol
424 // link to search for all definitions of that symbol instead.
428 out.append(symbol);
431 out.append(symbol);