Skip to content

Commit

Permalink
Fix line endings to use CR+LF consistently.
Browse files Browse the repository at this point in the history
  • Loading branch information
int19h committed May 12, 2015
1 parent 11486c2 commit c2ae31d
Show file tree
Hide file tree
Showing 7 changed files with 804 additions and 805 deletions.
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 Python/Product/PythonTools/PythonTools/Repl/IMultipleScopeEvaluator.cs
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
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
Loading

0 comments on commit c2ae31d

Please sign in to comment.