boolangstudio /Dependencies/boo/lib/antlr-2.7.5/lib/csharp/src/antlr/ASTNULLType.cs

Language C# Lines 123
MD5 Hash 585a25d1b85ec6015b9dda0ebe305e13 Estimated Cost $2,484 (why?)
Repository https://github.com/w4x/boolangstudio.git View Raw File View Project SPDX
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System;
using IEnumerator		= System.Collections.IEnumerator;

using AST				= antlr.collections.AST;
using Token				= antlr.Token;

namespace antlr
{
	/*ANTLR Translator Generator
	* Project led by Terence Parr at http://www.jGuru.com
	* Software rights: http://www.antlr.org/license.html
	*
	* $Id:$
	*/
	
	//
	// ANTLR C# Code Generator by Micheal Jordan
	//                            Kunle Odutola       : kunle UNDERSCORE odutola AT hotmail DOT com
	//                            Anthony Oguntimehin
	//
	// With many thanks to Eric V. Smith from the ANTLR list.
	//

	/*There is only one instance of this class **/
	public class ASTNULLType : AST
	{
		public virtual void  addChild(AST c) {}

		public virtual bool Equals(AST t)
		{
			return false;
		}
		public virtual bool EqualsList(AST t)
		{
			return false;
		}
		public virtual bool EqualsListPartial(AST t)
		{
			return false;
		}
		public virtual bool EqualsTree(AST t)
		{
			return false;
		}
		public virtual bool EqualsTreePartial(AST t)
		{
			return false;
		}
		public virtual IEnumerator findAll(AST tree)
		{
			return null;
		}
		public virtual IEnumerator findAllPartial(AST subtree)
		{
			return null;
		}
		public virtual AST getFirstChild()
		{
			return this;
		}
		public virtual AST getNextSibling()
		{
			return this;
		}
		public virtual string getText()
		{
			return "<ASTNULL>";
		}
		public virtual int Type
		{
			get { return Token.NULL_TREE_LOOKAHEAD; }
			set { ; }
		}
		public int getNumberOfChildren() 
		{
			return 0;
		}
		public virtual void  initialize(int t, string txt)
		{
		}
		public virtual void  initialize(AST t)
		{
		}
		public virtual void  initialize(IToken t)
		{
		}
		public virtual void  setFirstChild(AST c)
		{
			;
		}
		public virtual void  setNextSibling(AST n)
		{
			;
		}
		public virtual void  setText(string text)
		{
			;
		}
		public virtual void  setType(int ttype)
		{
			this.Type = ttype;
		}
		override public string ToString()
		{
			return getText();
		}
		public virtual string ToStringList()
		{
			return getText();
		}
		public virtual string ToStringTree()
		{
			return getText();
		}

		#region Implementation of ICloneable
		public object Clone()
		{
			return MemberwiseClone();
		}
		#endregion
	}
}
Back to Top