From f70587ec48c83d1ae46fb0752d5c1439a4974bb1 Mon Sep 17 00:00:00 2001 From: Markus Schirp Date: Wed, 1 Aug 2012 18:29:00 +0200 Subject: [PATCH] Remove fake AST --- spec/support/fake_ast.rb | 48 ---------------------------------------- 1 file changed, 48 deletions(-) delete mode 100644 spec/support/fake_ast.rb diff --git a/spec/support/fake_ast.rb b/spec/support/fake_ast.rb deleted file mode 100644 index 54595951..00000000 --- a/spec/support/fake_ast.rb +++ /dev/null @@ -1,48 +0,0 @@ -unless defined?(Rubinius) - module Rubinius - # Dummy AST namespace - module AST - # Dummy node - class Node - attr_reader :line, :name - - attr_accessor :body - - def initialize(line, name, body=[]) - @line, @name, @body = line, name, body - end - end - - class ConstantScope < Node - end - - class ClassScope < ConstantScope - end - - class ModuleScope < ConstantScope - end - - class Script < Node - end - - # Dummy class node - class Class < Node - def initialize(line, name, superclass, body) - super(line, name) - @superclass, @body = superclass, body - end - end - - # Dummy module node - class Module < Node - def initialize(line, name, body) - super(line, name) - @body = body - end - end - - class ConstantAccess < Node - end - end - end -end