internal override void Analyze(Analyzer analyzer) { caseVal = caseVal.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize(); if (caseVal.HasValue) { analyzer.AddConstCaseToCurrentSwitch(caseVal.Value, position); } base.Analyze(analyzer); }
protected override void Analyze(CaseItem /*!*/ node, Analyzer analyzer) { node.CaseVal = node.CaseVal.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize(); if (node.CaseVal.HasValue()) { analyzer.AddConstCaseToCurrentSwitch(node.CaseVal.GetValue(), node.Span); } base.Analyze(node, analyzer); }
internal override void Analyze(Analyzer analyzer) { caseVal = caseVal.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize(); if (caseVal.HasValue) analyzer.AddConstCaseToCurrentSwitch(caseVal.Value, position); base.Analyze(analyzer); }