示例#1
0
        internal override void Analyze(Analyzer analyzer)
        {
            caseVal = caseVal.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize();

            if (caseVal.HasValue)
            {
                analyzer.AddConstCaseToCurrentSwitch(caseVal.Value, position);
            }

            base.Analyze(analyzer);
        }
示例#2
0
            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);
            }
示例#3
0
		internal override void Analyze(Analyzer analyzer)
		{
			caseVal = caseVal.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize();

			if (caseVal.HasValue)
				analyzer.AddConstCaseToCurrentSwitch(caseVal.Value, position);

			base.Analyze(analyzer);
		}