PageRenderTime 28ms CodeModel.GetById 21ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/tags/jsdoc_toolkit-2.3.2/jsdoc-toolkit/app/handlers/XMLDOC/XMLDoc.js

http://jsdoc-toolkit.googlecode.com/
JavaScript | 16 lines | 6 code | 4 blank | 6 comment | 0 complexity | 5c36a6e9aef539d9b2fe5b788618ee64 MD5 | raw file
 1LOG.inform("XMLDOC.symbolize loaded");
 2
 3/**
 4 * Convert the source file to a set of symbols
 5 */
 6XMLDOC.symbolize = function(srcFile, src) {
 7
 8   LOG.inform("Symbolizing file '" + srcFile + "'");
 9
10   // XML files already have a defined structure, so we don't need to
11   // do anything but parse them.  The DOM reader can create a symbol
12   // table from the parsed XML.
13   var dr = new XMLDOC.DomReader(XMLDOC.Parser.parse(src));
14   return dr.getSymbols(srcFile);
15
16};