-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Centralise definitions of well-known element paths.
- Loading branch information
Showing
4 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/LanguageServer.SemanticModel.MSBuild/WellKnownElementPaths.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
namespace MSBuildProjectTools.LanguageServer.SemanticModel | ||
{ | ||
/// <summary> | ||
/// <see cref="XSPath"/>s representing well-known elements in MSBuild projects. | ||
/// </summary> | ||
public static class WellKnownElementPaths | ||
{ | ||
/// <summary> | ||
/// The absolute path of the root "Project" element. | ||
/// </summary> | ||
public static XSPath Project = XSPath.Parse("/Project"); | ||
|
||
/// <summary> | ||
/// The relative path that represents a "PropertyGroup" element (static or dynamic). | ||
/// </summary> | ||
public static readonly XSPath PropertyGroup = XSPath.Parse("PropertyGroup"); | ||
|
||
/// <summary> | ||
/// The relative path that represents a "ItemGroup" element (static or dynamic). | ||
/// </summary> | ||
public static readonly XSPath ItemGroup = XSPath.Parse("ItemGroup"); | ||
} | ||
} |