aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/Bind/DelayedField.cs
blob: 25641516257c22a684a8fcb79b86e7c9811bb95c (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
// 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.Bind
{
    using WixToolset.Data;
    using WixToolset.Extensibility.Data;

    /// <summary>
    /// Holds a symbol and field that contain binder variables, which need to be resolved
    /// later, once the files have been resolved.
    /// </summary>
    internal class DelayedField : IDelayedField
    {
        /// <summary>
        /// Creates a delayed field.
        /// </summary>
        /// <param name="symbol">Symbol for the field.</param>
        /// <param name="field">Field needing further resolution.</param>
        public DelayedField(IntermediateSymbol symbol, IntermediateField field)
        {
            this.Symbol = symbol;
            this.Field = field;
        }

        /// <summary>
        /// The row containing the field.
        /// </summary>
        public IntermediateSymbol Symbol { get; }

        /// <summary>
        /// The field needing further resolving.
        /// </summary>
        public IntermediateField Field { get; }
    }
}