Example #1
0
        /// <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));
		}
Example #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)
		{
		}
Example #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)
		{
		}
Example #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)
		{
		}
Example #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;
		}
Example #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)
		{
		}
Example #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)
		{
		}
Example #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)
		{
		}
Example #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)
		{
		}