import { ModuleNode , ParseNode } from '../parser/parseNodes' ; import * as AnalyzerNodeInfo from './analyzerNodeInfo' ; import { ParseTreeWalker } from './parseTreeWalker' ; export class ParseTreeCleanerWalker extends ParseTreeWalker { private _parseTree : ModuleNode ; constructor ( parseTree ) { super ( ) ; this . _parseTree = parseTree ; } clean ( ) { this . walk ( this . _parseTree ) ; } override visitNode ( node ) { AnalyzerNodeInfo . cleanNodeAnalysisInfo ( node ) ; return super . visitNode ( node ) ; } }