forked from microsoft/PTVS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix line endings to use CR+LF consistently.
- Loading branch information
Showing
7 changed files
with
804 additions
and
805 deletions.
There are no files selected for viewing
54 changes: 27 additions & 27 deletions
54
Python/Product/PythonTools/PythonTools/Repl/IInteractiveEvaluatorProvider.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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using Microsoft.VisualStudio.InteractiveWindow; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
interface IInteractiveEvaluatorProvider { | ||
IInteractiveEvaluator GetEvaluator(string replId); | ||
} | ||
} | ||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using Microsoft.VisualStudio.InteractiveWindow; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
interface IInteractiveEvaluatorProvider { | ||
IInteractiveEvaluator GetEvaluator(string replId); | ||
} | ||
} | ||
#endif |
120 changes: 60 additions & 60 deletions
120
Python/Product/PythonTools/PythonTools/Repl/IMultipleScopeEvaluator.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 |
---|---|---|
@@ -1,61 +1,61 @@ | ||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using Microsoft.VisualStudio.InteractiveWindow; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
interface IMultipleScopeEvaluator : IInteractiveEvaluator { | ||
/// <summary> | ||
/// Sets the current scope to the given name. | ||
/// </summary> | ||
void SetScope(string scopeName); | ||
|
||
/// <summary> | ||
/// Gets the list of scopes which can be changed to. | ||
/// </summary> | ||
IEnumerable<string> GetAvailableScopes(); | ||
|
||
/// <summary> | ||
/// Gets the current scope name. | ||
/// </summary> | ||
string CurrentScopeName { | ||
get; | ||
} | ||
|
||
/// <summary> | ||
/// Event is fired when the list of available scopes changes. | ||
/// </summary> | ||
event EventHandler<EventArgs> AvailableScopesChanged; | ||
|
||
/// <summary> | ||
/// Event is fired when support of multiple scopes has changed. | ||
/// </summary> | ||
event EventHandler<EventArgs> MultipleScopeSupportChanged; | ||
|
||
/// <summary> | ||
/// Returns true if multiple scope support is currently enabled, false if not. | ||
/// </summary> | ||
bool EnableMultipleScopes { | ||
get; | ||
} | ||
} | ||
} | ||
|
||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using Microsoft.VisualStudio.InteractiveWindow; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
interface IMultipleScopeEvaluator : IInteractiveEvaluator { | ||
/// <summary> | ||
/// Sets the current scope to the given name. | ||
/// </summary> | ||
void SetScope(string scopeName); | ||
|
||
/// <summary> | ||
/// Gets the list of scopes which can be changed to. | ||
/// </summary> | ||
IEnumerable<string> GetAvailableScopes(); | ||
|
||
/// <summary> | ||
/// Gets the current scope name. | ||
/// </summary> | ||
string CurrentScopeName { | ||
get; | ||
} | ||
|
||
/// <summary> | ||
/// Event is fired when the list of available scopes changes. | ||
/// </summary> | ||
event EventHandler<EventArgs> AvailableScopesChanged; | ||
|
||
/// <summary> | ||
/// Event is fired when support of multiple scopes has changed. | ||
/// </summary> | ||
event EventHandler<EventArgs> MultipleScopeSupportChanged; | ||
|
||
/// <summary> | ||
/// Returns true if multiple scope support is currently enabled, false if not. | ||
/// </summary> | ||
bool EnableMultipleScopes { | ||
get; | ||
} | ||
} | ||
} | ||
|
||
#endif |
77 changes: 38 additions & 39 deletions
77
Python/Product/PythonTools/PythonTools/Repl/InteractiveRoleAttribute.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 |
---|---|---|
@@ -1,40 +1,39 @@ | ||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)] | ||
sealed class InteractiveWindowRoleAttribute : Attribute { | ||
private readonly string _name; | ||
|
||
public InteractiveWindowRoleAttribute(string name) { | ||
if (name.Contains(",")) | ||
throw new ArgumentException("ReplRoleAttribute name cannot contain any commas. Apply multiple attributes if you want to support multiple roles.", "name"); | ||
|
||
_name = name; | ||
} | ||
|
||
public string Name { | ||
get { return _name; } | ||
} | ||
|
||
} | ||
} | ||
/* **************************************************************************** | ||
* | ||
* Copyright (c) Microsoft Corporation. | ||
* | ||
* This source code is subject to terms and conditions of the Apache License, Version 2.0. A | ||
* copy of the license can be found in the License.html file at the root of this distribution. If | ||
* you cannot locate the Apache License, Version 2.0, please send an email to | ||
* [email protected]. By using this source code in any fashion, you are agreeing to be bound | ||
* by the terms of the Apache License, Version 2.0. | ||
* | ||
* You must not remove this notice, or any other, from this software. | ||
* | ||
* ***************************************************************************/ | ||
|
||
#if DEV14_OR_LATER | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Microsoft.PythonTools.Repl { | ||
[AttributeUsage(AttributeTargets.All, AllowMultiple = true)] | ||
sealed class InteractiveWindowRoleAttribute : Attribute { | ||
private readonly string _name; | ||
|
||
public InteractiveWindowRoleAttribute(string name) { | ||
if (name.Contains(",")) | ||
throw new ArgumentException("ReplRoleAttribute name cannot contain any commas. Apply multiple attributes if you want to support multiple roles.", "name"); | ||
|
||
_name = name; | ||
} | ||
|
||
public string Name { | ||
get { return _name; } | ||
} | ||
} | ||
} | ||
#endif |
Oops, something went wrong.