コード例 #1
0
        public override void VisitEndIfDirectiveTrivia(EndIfDirectiveTriviaSyntax node)
        {
            if (ifStarts.Count == 0)
            {
                cx.ExtractionError("Couldn't find start if", null,
                                   cx.CreateLocation(node.GetLocation()), null, Util.Logging.Severity.Warning);
                return;
            }

            var start = ifStarts.Pop();

            new Entities.EndIfDirective(cx, node, start.Entity);
        }
コード例 #2
0
ファイル: LLOC.cs プロジェクト: smartshark/OpenStaticAnalyzer
 public override void VisitEndIfDirectiveTrivia(EndIfDirectiveTriviaSyntax node)
 {
     InsertLLOCMap(node.GetLocation());
     base.VisitEndIfDirectiveTrivia(node);
 }