コード例 #1
0
        public IEnumerable <CodeInspectionResultBase> GetInspectionResults(SyntaxTreeNode node)
        {
            var comments    = node.FindAllComments();
            var remComments = comments.Where(instruction => instruction.Comment.StartsWith(ReservedKeywords.Rem))
                              .Select(instruction => new CommentNode(instruction, node.Scope));

            return(remComments.Select(instruction => new ObsoleteCommentSyntaxInspectionResult(Name, instruction, Severity)));
        }