示例#1
0
文件: Parser.cs 项目: SteGriff/NCover
        /// <summary>
        /// Initializes a new instance of the <see cref="Parser"/> class.
        /// </summary>
        /// <param name="Settings">The settings.</param>
		public Parser(ReportSettings Settings)
		{
			this.settings = Settings;
            this.coveragepoints = new List<CoveragePoint>();
			
			AddCoveragePointDelegate addpointdel = new AddCoveragePointDelegate(this.AddCoveragePoint);

            this.matchers = new List<Matcher>(6);
			this.matchers.Add(new StatementMatcher(addpointdel));
			this.matchers.Add(new ConditionalMatcher(addpointdel));
			this.matchers.Add(new CatchBlockMatcher(addpointdel));
			this.matchers.Add(new MethodMatcher(addpointdel));
			this.matchers.Add(new FlattenMatcher(addpointdel));
			this.matchers.Add(new UnflattenMatcher(addpointdel));
		}
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CatchBlockMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public CatchBlockMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="MethodMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public MethodMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UnflattenMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public UnflattenMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Matcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public Matcher(AddCoveragePointDelegate AddPointCallback)
		{
			this.addpoint = AddPointCallback;
		}
示例#6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConditionalMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public ConditionalMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SubroutineMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public SubroutineMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#8
0
        /// <summary>
        /// Initializes a new instance of the <see cref="FunctionMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public FunctionMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}
示例#9
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StatementMatcher"/> class.
        /// </summary>
        /// <param name="AddPointCallback">The add point callback.</param>
		public StatementMatcher(AddCoveragePointDelegate AddPointCallback) : base(AddPointCallback)
		{
		}