aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/TrackedFile.cs
blob: 312b09f48573a7ddf5fc1515c469524c4eee908e (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
// 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
{
    using WixToolset.Data;
    using WixToolset.Extensibility.Data;

    internal class TrackedFile : ITrackedFile
    {
        public TrackedFile(string path, TrackedFileType type, SourceLineNumber sourceLineNumbers)
        {
            this.Path = path;
            this.Type = type;
            this.SourceLineNumbers = sourceLineNumbers;
            this.Clean = (type == TrackedFileType.Intermediate || type == TrackedFileType.Final);
        }

        public bool Clean { get; set; }

        public string Path { get; set; }

        public SourceLineNumber SourceLineNumbers { get; set; }

        public TrackedFileType Type { get; set; }
    }
}