Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/System.Management.Automation/engine/parser/ast.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8110,6 +8110,7 @@ internal override object Accept(ICustomAstVisitor visitor)
/// <summary>
/// The name and attributes of a type.
/// </summary>
#nullable enable
public interface ITypeName
{
/// <summary>
Expand All @@ -8125,7 +8126,7 @@ public interface ITypeName
/// <summary>
/// The name of the assembly, if specified, otherwise null.
/// </summary>
string AssemblyName { get; }
string? AssemblyName { get; }

/// <summary>
/// Returns true if the type names an array, false otherwise.
Expand All @@ -8140,20 +8141,21 @@ public interface ITypeName
/// <summary>
/// Returns the <see cref="System.Type"/> that this typename represents, if such a type exists, null otherwise.
/// </summary>
Type GetReflectionType();
Type? GetReflectionType();

/// <summary>
/// Assuming the typename is an attribute, returns the <see cref="System.Type"/> that this typename represents.
/// By convention, the typename may omit the suffix "Attribute". Lookup will attempt to resolve the type as is,
/// and if that fails, the suffix "Attribute" will be appended.
/// </summary>
Type GetReflectionAttributeType();
Type? GetReflectionAttributeType();

/// <summary>
/// The extent of the typename.
/// </summary>
IScriptExtent Extent { get; }
}
#nullable restore

internal interface ISupportsTypeCaching
{
Expand Down