mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Rename namespaces to match file locations
--HG-- branch : dev
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Tests.Modules.Scripting {
|
||||
[TestFixture]
|
||||
|
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using NUnit.Framework;
|
||||
using Orchard.Scripting.SimpleScripting.Ast;
|
||||
using Orchard.Widgets.SimpleScripting.Ast;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Ast;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Tests.Modules.Scripting {
|
||||
[TestFixture]
|
||||
|
@@ -1,8 +1,8 @@
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using Orchard.Scripting;
|
||||
using Orchard.Tests.Stubs;
|
||||
using Orchard.Widgets.Services;
|
||||
using Orchard.Widgets.SimpleScripting;
|
||||
|
||||
namespace Orchard.Tests.Modules.Scripting {
|
||||
[TestFixture]
|
||||
|
@@ -1,5 +1,5 @@
|
||||
using NUnit.Framework;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Tests.Modules.Scripting {
|
||||
[TestFixture]
|
||||
|
@@ -1,7 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Widgets.SimpleScripting.Ast;
|
||||
|
||||
namespace Orchard.Scripting.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class AbstractSyntaxTree {
|
||||
public AstNode Root { get; set; }
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public abstract class AstNode {
|
||||
public virtual IEnumerable<AstNode> Children {
|
||||
get {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class AstVisitor {
|
||||
public virtual object Visit(AstNode node) {
|
||||
return node.Accept(this);
|
||||
|
@@ -1,8 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class BinaryAstNode : AstNode, IAstNodeWithToken {
|
||||
private readonly AstNode _left;
|
||||
private readonly Token _token;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class ConstantAstNode : AstNode, IAstNodeWithToken {
|
||||
private readonly Token _token;
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class ErrorAstNode : AstNode, IAstNodeWithToken {
|
||||
private readonly Token _token;
|
||||
private readonly string _message;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public interface IAstNodeWithToken {
|
||||
Token Token { get; }
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class MethodCallAstNode : AstNode, IAstNodeWithToken {
|
||||
private readonly Token _token;
|
||||
private readonly IList<AstNode> _arguments;
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Ast {
|
||||
namespace Orchard.Scripting.Ast {
|
||||
public class UnaryAstNode : AstNode, IAstNodeWithToken {
|
||||
private readonly AstNode _operand;
|
||||
private readonly Token _token;
|
||||
|
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Scripting.SimpleScripting.Ast;
|
||||
using Orchard.Widgets.SimpleScripting.Ast;
|
||||
using Orchard.Scripting.Ast;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class Interpreter {
|
||||
public EvaluationResult Evalutate(EvaluationContext context) {
|
||||
return new InterpreterVisitor(context).Evaluate();
|
||||
|
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Orchard.Widgets.SimpleScripting.Ast;
|
||||
using Orchard.Scripting.Ast;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class InterpreterVisitor : AstVisitor {
|
||||
private readonly EvaluationContext _context;
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class Lexer {
|
||||
private readonly Tokenizer _tokenizer;
|
||||
private readonly List<Token> _tokens= new List<Token>();
|
||||
|
@@ -1,9 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Scripting.SimpleScripting.Ast;
|
||||
using Orchard.Widgets.SimpleScripting.Ast;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Scripting.Ast;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class Parser {
|
||||
private readonly string _expression;
|
||||
private readonly Lexer _lexer;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class Token {
|
||||
public TokenKind Kind { get; set; }
|
||||
public int Position { get; set; }
|
||||
|
@@ -1,4 +1,4 @@
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public enum TokenKind {
|
||||
Eof,
|
||||
OpenParen,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting.Compiler {
|
||||
namespace Orchard.Scripting.Compiler {
|
||||
public class Tokenizer {
|
||||
private readonly string _expression;
|
||||
private readonly StringBuilder _stringBuilder;
|
||||
|
@@ -3,10 +3,10 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Orchard.Caching;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Scripting.SimpleScripting.Ast;
|
||||
using Orchard.Widgets.SimpleScripting.Compiler;
|
||||
using Orchard.Scripting.Ast;
|
||||
using Orchard.Scripting.Compiler;
|
||||
|
||||
namespace Orchard.Widgets.SimpleScripting {
|
||||
namespace Orchard.Scripting {
|
||||
public class GlobalMethodContext {
|
||||
public string FunctionName { get; set; }
|
||||
public IList<object> Arguments { get; set; }
|
||||
|
Reference in New Issue
Block a user