edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj;C529561
File: Ruby.csproj
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj;C529561 (server) 8/14/2008 5:49 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj;RubyAST
@@ -229,10 +229,8 @@
-
-
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Ruby.csproj.vspscc;C390406
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/AstGenerator.cs;C509767
File: AstGenerator.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/AstGenerator.cs;C509767 (server) 8/14/2008 6:17 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/AstGenerator.cs;RubyAST
@@ -622,7 +622,7 @@
return result;
}
- internal MSA.Expression/*!*/ TransformStatements(List/*!*/ statements, ResultOperation resultOperation) {
+ internal MSA.Expression/*!*/ TransformStatements(List/*!*/ statements, ResultOperation resultOperation) {
Assert.NotNullItems(statements);
if (statements.Count > 0) {
@@ -651,7 +651,7 @@
}
}
- internal MSA.Expression/*!*/ TransformStatementsToExpression(List statements) {
+ internal MSA.Expression/*!*/ TransformStatementsToExpression(List statements) {
if (statements == null || statements.Count == 0) {
return Ast.Null();
}
@@ -660,7 +660,7 @@
return statements[0].TransformRead(this);
}
- MSA.Expression[] result = new MSA.Expression[statements.Count];
+ var result = new MSA.Expression[statements.Count];
for (int i = 0; i < result.Length - 1; i++) {
result[i] = statements[i].Transform(this);
}
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/AstFactory.cs;C515501
File: AstFactory.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/AstFactory.cs;C515501 (server) 8/14/2008 5:28 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/AstFactory.cs;RubyAST
@@ -73,13 +73,6 @@
#endregion
- public static MSA.Expression/*!*/ Result(MSA.Expression/*!*/ resultVariable, MSA.Expression/*!*/ statement) {
- return Ast.Comma(
- statement,
- resultVariable
- );
- }
-
public static MSA.Expression/*!*/ Infinite(MSA.LabelTarget/*!*/ label, params MSA.Expression[]/*!*/ body) {
return AstUtils.Infinite(Ast.Block(body), label);
}
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/BlockDefinition.cs;C509767
File: BlockDefinition.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/BlockDefinition.cs;C509767 (server) 8/14/2008 6:19 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/BlockDefinition.cs;RubyAST
@@ -35,15 +35,14 @@
internal const int MaxBlockArity = BlockDispatcher.MaxBlockArity;
private readonly CompoundLeftValue/*!*/ _parameters;
- private readonly List/*!*/ _body;
+ private readonly List/*!*/ _body;
private readonly LexicalScope _definedScope;
public CompoundLeftValue/*!*/ Parameters {
get { return _parameters; }
}
- // TODO: readonly
- public List/*!*/ Body {
+ public List/*!*/ Body {
get { return _body; }
}
@@ -57,7 +56,7 @@
get { return _parameters.UnsplattedValue != null; }
}
- public BlockDefinition(LexicalScope definedScope, CompoundLeftValue/*!*/ parameters, List/*!*/ body, SourceSpan location)
+ public BlockDefinition(LexicalScope definedScope, CompoundLeftValue/*!*/ parameters, List/*!*/ body, SourceSpan location)
: base(location) {
Assert.NotNull(parameters, body);
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Body.cs;C515501
File: Body.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Body.cs;C515501 (server) 8/14/2008 6:15 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Body.cs;RubyAST
@@ -35,16 +35,16 @@
// statements
// end
- private readonly List/*!*/ _statements;
+ private readonly List/*!*/ _statements;
private readonly List _rescueClauses; // optional
- private readonly List _elseStatements; // optional
- private readonly List _ensureStatements; // optional
+ private readonly List _elseStatements; // optional
+ private readonly List _ensureStatements; // optional
// TODO: readonly
- public List/*!*/ Statements { get { return _statements; } }
+ public List/*!*/ Statements { get { return _statements; } }
public List RescueClauses { get { return _rescueClauses; } }
- public List ElseStatements { get { return _elseStatements; } }
- public List EnsureStatements { get { return _ensureStatements; } }
+ public List ElseStatements { get { return _elseStatements; } }
+ public List EnsureStatements { get { return _ensureStatements; } }
private bool HasExceptionHandling {
get {
@@ -52,8 +52,8 @@
}
}
- public Body(List/*!*/ statements, List rescueClauses, List elseStatements,
- List ensureStatements, SourceSpan location)
+ public Body(List/*!*/ statements, List rescueClauses, List elseStatements,
+ List ensureStatements, SourceSpan location)
: base(location) {
Assert.NotNull(statements);
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/SourceUnitTree.cs;C510808
File: SourceUnitTree.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/SourceUnitTree.cs;C510808 (server) 8/14/2008 6:18 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/SourceUnitTree.cs;RubyAST
@@ -13,6 +13,7 @@
*
* ***************************************************************************/
+using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Scripting;
@@ -23,27 +24,26 @@
using Ruby.Runtime;
using Ruby.Runtime.Calls;
using MSA = System.Linq.Expressions;
+using AstUtils = Microsoft.Scripting.Ast.Utils;
namespace Ruby.Compiler.Ast {
using Ast = System.Linq.Expressions.Expression;
- using AstUtils = Microsoft.Scripting.Ast.Utils;
- using System;
public partial class SourceUnitTree : Node {
private readonly LexicalScope/*!*/ _definedScope;
private readonly List _initializers;
- private readonly List _statements;
+ private readonly List _statements;
public List Initializers {
get { return _initializers; }
}
- public List Statements {
+ public List Statements {
get { return _statements; }
}
- public SourceUnitTree(LexicalScope/*!*/ definedScope, List statements, List initializers, SourceSpan location)
+ public SourceUnitTree(LexicalScope/*!*/ definedScope, List statements, List initializers, SourceSpan location)
: base(location) {
ContractUtils.RequiresNotNull(definedScope, "scope");
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/ElseIfClause.cs;C509767
File: ElseIfClause.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/ElseIfClause.cs;C509767 (server) 8/14/2008 6:17 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/ElseIfClause.cs;RubyAST
@@ -20,14 +20,14 @@
namespace Ruby.Compiler.Ast {
public partial class ElseIfClause : Node {
- private readonly List/*!*/ _statements;
+ private readonly List/*!*/ _statements;
///
/// Null means a simple else.
///
private readonly Expression _condition;
- public List/*!*/ Statements {
+ public List/*!*/ Statements {
get { return _statements; }
}
@@ -35,7 +35,7 @@
get { return _condition; }
}
- public ElseIfClause(Expression condition, List/*!*/ statements, SourceSpan location)
+ public ElseIfClause(Expression condition, List/*!*/ statements, SourceSpan location)
: base(location) {
Assert.NotNullItems(statements);
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/RescueClause.cs;C509767
File: RescueClause.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/RescueClause.cs;C509767 (server) 8/14/2008 6:16 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/RescueClause.cs;RubyAST
@@ -29,7 +29,7 @@
private readonly List _types; // optional
private readonly LeftValue _target; // optional
- private readonly List _statements; // optional
+ private readonly List _statements; // optional
public List Types {
get { return _types; }
@@ -39,16 +39,16 @@
get { return _target; }
}
- public List Statements {
+ public List Statements {
get { return _statements; }
}
- public RescueClause(List statements, SourceSpan location)
+ public RescueClause(List statements, SourceSpan location)
: base(location) {
_statements = statements;
}
- public RescueClause(List types, LeftValue target, List statements, SourceSpan location)
+ public RescueClause(List types, LeftValue target, List statements, SourceSpan location)
: base(location) {
_types = types;
_target = target;
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/WhenClause.cs;C509767
File: WhenClause.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/WhenClause.cs;C509767 (server) 8/14/2008 6:20 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Clauses/WhenClause.cs;RubyAST
@@ -26,9 +26,9 @@
// next
private readonly Arguments/*!*/ _comparison;
- private readonly List _statements; // optional
+ private readonly List _statements; // optional
- public List Statements {
+ public List Statements {
get { return _statements; }
}
@@ -36,7 +36,7 @@
get { return _comparison; }
}
- public WhenClause(Arguments/*!*/ comparison, List statements, SourceSpan location)
+ public WhenClause(Arguments/*!*/ comparison, List statements, SourceSpan location)
: base(location) {
ContractUtils.RequiresNotNull(comparison, "comparison");
===================================================================
edit: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Expressions/CaseExpression.cs;C510808
File: CaseExpression.cs
===================================================================
--- $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Expressions/CaseExpression.cs;C510808 (server) 8/14/2008 5:22 PM
+++ Shelved Change: $/Dev10/feature/vs_langs01/Merlin/Main/Languages/Ruby/Ruby/Compiler/Ast/Expressions/CaseExpression.cs;RubyAST
@@ -106,25 +106,27 @@
MSA.Expression resultVariable = gen.CurrentScope.DefineHiddenVariable("#case-compare-result", typeof(bool));
MSA.LabelTarget label = Ast.Label();
- return AstFactory.Result(resultVariable,
- Ast.Block(
- Ast.Assign(enumVariable, Ast.Call(
- AstFactory.OpCall("Unsplat", array),
- typeof(IEnumerable