diff options
Diffstat (limited to 'src/WixToolset.Extensibility/BaseCompilerExtension.cs')
| -rw-r--r-- | src/WixToolset.Extensibility/BaseCompilerExtension.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WixToolset.Extensibility/BaseCompilerExtension.cs b/src/WixToolset.Extensibility/BaseCompilerExtension.cs index e1584bc3..51fbcd0b 100644 --- a/src/WixToolset.Extensibility/BaseCompilerExtension.cs +++ b/src/WixToolset.Extensibility/BaseCompilerExtension.cs | |||
| @@ -35,6 +35,11 @@ namespace WixToolset.Extensibility | |||
| 35 | public abstract XNamespace Namespace { get; } | 35 | public abstract XNamespace Namespace { get; } |
| 36 | 36 | ||
| 37 | /// <summary> | 37 | /// <summary> |
| 38 | /// Creates a component key path. | ||
| 39 | /// </summary> | ||
| 40 | protected IComponentKeyPath CreateComponentKeyPath() => this.Context.ServiceProvider.GetService<IComponentKeyPath>(); | ||
| 41 | |||
| 42 | /// <summary> | ||
| 38 | /// Called at the beginning of the compilation of a source file. | 43 | /// Called at the beginning of the compilation of a source file. |
| 39 | /// </summary> | 44 | /// </summary> |
| 40 | public virtual void PreCompile(ICompileContext context) | 45 | public virtual void PreCompile(ICompileContext context) |
| @@ -75,7 +80,7 @@ namespace WixToolset.Extensibility | |||
| 75 | /// <param name="element">Element to process.</param> | 80 | /// <param name="element">Element to process.</param> |
| 76 | /// <param name="keyPath">Explicit key path.</param> | 81 | /// <param name="keyPath">Explicit key path.</param> |
| 77 | /// <param name="contextValues">Extra information about the context in which this element is being parsed.</param> | 82 | /// <param name="contextValues">Extra information about the context in which this element is being parsed.</param> |
| 78 | public virtual ComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary<string, string> context) | 83 | public virtual IComponentKeyPath ParsePossibleKeyPathElement(Intermediate intermediate, IntermediateSection section, XElement parentElement, XElement element, IDictionary<string, string> context) |
| 79 | { | 84 | { |
| 80 | this.ParseElement(intermediate, section, parentElement, element, context); | 85 | this.ParseElement(intermediate, section, parentElement, element, context); |
| 81 | return null; | 86 | return null; |
