diff --git a/src/System.Management.Automation/engine/Attributes.cs b/src/System.Management.Automation/engine/Attributes.cs
index f0022448c0..876f428bde 100644
--- a/src/System.Management.Automation/engine/Attributes.cs
+++ b/src/System.Management.Automation/engine/Attributes.cs
@@ -560,6 +560,10 @@ namespace System.Management.Automation
[AttributeUsage(AttributeTargets.Assembly)]
public class DynamicClassImplementationAssemblyAttribute : Attribute
{
+ ///
+ /// The (possibly null) path to the file defining this class.
+ ///
+ public string ScriptFile { get; set; }
}
#endregion Misc Attributes
diff --git a/src/System.Management.Automation/engine/parser/PSType.cs b/src/System.Management.Automation/engine/parser/PSType.cs
index 1a5a15fc77..91ee67d9af 100644
--- a/src/System.Management.Automation/engine/parser/PSType.cs
+++ b/src/System.Management.Automation/engine/parser/PSType.cs
@@ -16,10 +16,11 @@ namespace System.Management.Automation.Language
{
internal class TypeDefiner
{
+ internal const string DynamicClassAssemblyName = "PowerShell Class Assembly";
+
private static int s_globalCounter = 0;
- private static readonly object[] s_emptyArgArray = Utils.EmptyArray