aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/PreprocessContext.cs
blob: cb29d1ffeb18145af583f840586cfb540f66c051 (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
29
30
31
32
33
34
35
36
37
// 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 System;
    using System.Collections.Generic;
    using WixToolset.Data;
    using WixToolset.Extensibility;
    using WixToolset.Extensibility.Services;

    /// <summary>
    /// The preprocessor core.
    /// </summary>
    internal class PreprocessContext : IPreprocessContext
    {
        internal PreprocessContext(IServiceProvider serviceProvider)
        {
            this.ServiceProvider = serviceProvider;
        }

        public IServiceProvider ServiceProvider { get; }

        public IMessaging Messaging { get; set; }

        public IEnumerable<IPreprocessorExtension> Extensions { get; set; }

        public Platform Platform { get; set; }

        public IList<string> IncludeSearchPaths { get; set; }

        public string SourceFile { get; set; }

        public IDictionary<string, string> Variables { get; set; }

        public SourceLineNumber CurrentSourceLineNumber { get; set; }
    }
}