/// <summary>
		/// Gets the fully qualified name of the base class.
		/// </summary>
		public static string GetBaseClassName(ClassDefinition classDefinition)
		{
			ConstantVariable variable = classDefinition.SuperClass as ConstantVariable;
			if (variable != null) {
				return RubyControlFieldExpression.GetQualifiedName(variable);
			}
			return String.Empty;
		}
Exemple #2
0
 public override void Exit(ClassDefinition/*!*/ node)
 {
     Exit((ModuleDefinition)node);
 }
Exemple #3
0
 public override bool Enter(ClassDefinition/*!*/ node)
 {
     return Enter((ModuleDefinition)node);
 }
		protected override void Walk(ClassDefinition node)
		{
			classDefinition = node;
			componentName = node.QualifiedName.Name;
			base.Walk(node);
		}
 public virtual void Exit(ClassDefinition/*!*/ node) { }
Exemple #6
0
 public override void Exit(ClassDefinition node)
 {
     currentClass = null;
     base.Exit(node);
 }
 // declarations:
 public virtual bool Enter(ClassDefinition/*!*/ node) { return true; }
Exemple #8
0
 public override bool Enter(ClassDefinition node)
 {
     currentClass = node;
     return base.Enter(node);
 }
		/// <summary>
		/// Adds the named base type to the class.
		/// </summary>
		void AddBaseType(IClass c, ClassDefinition classDef)
		{
			string name = RubyComponentWalker.GetBaseClassName(classDef);
			c.BaseTypes.Add(new SearchClassReturnType(c.ProjectContent, c, 0, 0, name, 0));
		}
Exemple #10
0
		protected override void Walk(ClassDefinition node)
		{
			DefaultClass c = CreateClass(node);
			AddBaseType(c, node);
			
			// Walk through all the class items.
			currentClass = c;
			base.Walk(node);
			currentClass = null;	
		}
Exemple #11
0
 public virtual void Exit(ClassDefinition /*!*/ node)
 {
 }
Exemple #12
0
 // declarations:
 public virtual bool Enter(ClassDefinition /*!*/ node)
 {
     return(true);
 }