mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Remove trailing whitespace (#3001)
This commit is contained in:
1 parent
f4f576c92b
commit
02b5f357a2
1394 files changed
+22628
-22629
No files matched your search
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation.Diagnostics;
|
||||
namespace System.Management.Automation
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds the state of a Monad Shell session
|
||||
/// Holds the state of a Monad Shell session
|
||||
/// </summary>
|
||||
internal sealed partial class SessionStateInternal
|
||||
{
|
||||
@@ -53,11 +53,11 @@ namespace System.Management.Automation
|
||||
/// the current scope as a reference and filtering the functions in
|
||||
/// the other scopes based on the scoping rules.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <returns>
|
||||
/// An IDictionary representing the visible functions.
|
||||
/// </returns>
|
||||
///
|
||||
///
|
||||
internal IDictionary GetFunctionTable()
|
||||
{
|
||||
SessionStateScopeEnumerator scopeEnumerator =
|
||||
@@ -83,23 +83,23 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Gets an IEnumerable for the function table for a given scope
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="scopeID">
|
||||
/// A scope identifier that is either one of the "special" scopes like
|
||||
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
|
||||
/// to the current scope.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="scopeID"/> is less than zero, or not
|
||||
/// a number and not "script", "global", "local", or "private"
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentOutOfRangeException">
|
||||
/// If <paramref name="scopeID"/> is less than zero or greater than the number of currently
|
||||
/// active scopes.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
internal IDictionary<string, FunctionInfo> GetFunctionTableAtScope(string scopeID)
|
||||
{
|
||||
Dictionary<string, FunctionInfo> result =
|
||||
@@ -137,23 +137,23 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Get a functions out of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// name of function to look up
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the command that called this API...
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <returns>
|
||||
/// The value of the specified function.
|
||||
/// </returns>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
internal FunctionInfo GetFunction(string name, CommandOrigin origin)
|
||||
{
|
||||
if (String.IsNullOrEmpty(name))
|
||||
@@ -178,23 +178,23 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Get a functions out of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// name of function to look up
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <returns>
|
||||
/// The value of the specified function.
|
||||
/// </returns>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
internal FunctionInfo GetFunction(string name)
|
||||
{
|
||||
return GetFunction(name, CommandOrigin.Internal);
|
||||
} // GetFunction
|
||||
} // GetFunction
|
||||
|
||||
private IEnumerable<string> GetFunctionAliases(IParameterMetadataProvider ipmp)
|
||||
{
|
||||
@@ -220,31 +220,31 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the caller of this API
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunctionRaw(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -357,42 +357,42 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="originalFunction">
|
||||
/// The original function (if any) from which the ScriptBlock is derived.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="options">
|
||||
/// The options to set on the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the caller of this API
|
||||
/// </param>
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -407,47 +407,47 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="originalFunction">
|
||||
/// The original function (if any) from which the ScriptBlock is derived.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="options">
|
||||
/// The options to set on the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the caller of this API
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="helpFile">
|
||||
/// The name of the help file associated with the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -463,50 +463,50 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="originalFunction">
|
||||
/// The original function (if any) from which the ScriptBlock is derived.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="options">
|
||||
/// The options to set on the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the caller of this API
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="context">
|
||||
/// The execution context for the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="helpFile">
|
||||
/// The name of the help file associated with the function.
|
||||
/// </param>
|
||||
/// </param>
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -523,55 +523,55 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="originalFunction">
|
||||
/// The original function (if any) from which the ScriptBlock is derived.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="options">
|
||||
/// The options to set on the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// Origin of the caller of this API
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="context">
|
||||
/// The execution context for the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="helpFile">
|
||||
/// The name of the help file associated with the function.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="isPreValidated">
|
||||
/// Set to true if it is a regular function (meaning, we do not need to check this is a workflow or if the script contains JobDefinition Attribute and then process it)
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -629,42 +629,42 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="originalFunction">
|
||||
/// The original function (if any) from which the ScriptBlock is derived.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// The origin of the caller
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// or
|
||||
/// If <paramref name="function"/> is not a <see cref="FilterInfo">FilterInfo</see>
|
||||
/// or <see cref="FunctionInfo">FunctionInfo</see>
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(
|
||||
string name,
|
||||
ScriptBlock function,
|
||||
@@ -750,38 +750,38 @@ namespace System.Management.Automation
|
||||
|
||||
/// <summary>
|
||||
/// Set a function in the current scope of session state.
|
||||
///
|
||||
///
|
||||
/// BUGBUG: this overload is preserved because a lot of tests use reflection to
|
||||
/// call it. The tests should be fixed and this API eventually removed.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="function">
|
||||
/// The new value of the function being set.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function will be set even if its ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// or
|
||||
/// If <paramref name="function"/> is not a <see cref="FilterInfo">FilterInfo</see>
|
||||
/// or <see cref="FunctionInfo">FunctionInfo</see>
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentNullException">
|
||||
/// If <paramref name="function"/> is null.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is read-only or constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal FunctionInfo SetFunction(string name, ScriptBlock function, bool force)
|
||||
{
|
||||
return SetFunction(name, function, null, force, CommandOrigin.Internal);
|
||||
@@ -790,27 +790,27 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Removes a function from the function table.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to remove.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="origin">
|
||||
/// THe origin of the caller of this API
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function is removed even if it is ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal void RemoveFunction(string name, bool force, CommandOrigin origin)
|
||||
{
|
||||
if (String.IsNullOrEmpty(name))
|
||||
@@ -840,47 +840,47 @@ namespace System.Management.Automation
|
||||
/// <summary>
|
||||
/// Removes a function from the function table.
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to remove.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="force">
|
||||
/// If true, the function is removed even if it is ReadOnly.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="ArgumentException">
|
||||
/// If <paramref name="name"/> is null or empty.
|
||||
/// </exception>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal void RemoveFunction(string name, bool force)
|
||||
{
|
||||
RemoveFunction(name, force, CommandOrigin.Internal);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Removes a function from the function table
|
||||
/// Removes a function from the function table
|
||||
/// if the function was imported from the given module.
|
||||
///
|
||||
///
|
||||
/// BUGBUG: This is only used by the implicit remoting functions...
|
||||
/// </summary>
|
||||
///
|
||||
///
|
||||
/// <param name="name">
|
||||
/// The name of the function to remove.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <param name="module">
|
||||
/// Module the function might be imported from.
|
||||
/// </param>
|
||||
///
|
||||
///
|
||||
/// <exception cref="SessionStateUnauthorizedAccessException">
|
||||
/// If the function is constant.
|
||||
/// </exception>
|
||||
///
|
||||
/// </exception>
|
||||
///
|
||||
internal void RemoveFunction(string name, PSModuleInfo module)
|
||||
{
|
||||
Dbg.Assert(module != null, "Caller should verify that module parameter is not null");
|
||||
|
||||
Reference in new issue
Block a user