aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Preprocess/IfDefEventHandler.cs
blob: ff181d61cfed3fd59feeb811d41c67afb95c741b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.

namespace WixToolset.Core.Preprocess
{
    using System;
    using WixToolset.Data;

    public delegate void IfDefEventHandler(object sender, IfDefEventArgs e);

    public class IfDefEventArgs : EventArgs
    {
        public IfDefEventArgs(SourceLineNumber sourceLineNumbers, bool isIfDef, bool isDefined, string variableName)
        {
            this.SourceLineNumbers = sourceLineNumbers;
            this.IsIfDef = isIfDef;
            this.IsDefined = isDefined;
            this.VariableName = variableName;
        }

        public SourceLineNumber SourceLineNumbers { get; }

        public bool IsDefined { get; }

        public bool IsIfDef { get; }

        public string VariableName { get; }
    }
}