public string SpokenText(UserDefinedType udt) { if ( udt == null) { return String.Empty; } return udt.Name + $" {rm.GetString("AtLine", CultureInfo.CurrentCulture)} " + udt.Location.StartLineNumber; }
public override void VisitUserDefinedType(UserDefinedType udt) { if (udt != null && udt.AssociatedComment != null) { m_commentsInFile.Add(udt.AssociatedComment); } VisitChildren(udt); }
/// <summary> /// This function overrides the behavior when the current node being walked is a ClassDefinition /// </summary> /// <param name="node"> the ClassDefinition node</param> /// <returns> boolean value. not important for this implementation. it is handeled by a call to the base Walk() method.</returns> public override bool Walk(IronPython.Compiler.Ast.ClassDefinition node) { UserDefinedType udt = PythonEntityCreationHelper.createClassUDT(node, m_currentCodeFile, m_currentParent); m_currentParent.AddChild(udt); udt.Parent = m_currentParent; m_savedParents.Push(m_currentParent); m_currentParent = udt; return(true); }
public string SpokenText(UserDefinedType udt) { if (udt == null) { return(String.Empty); } string whichType = udt.Kind.ToString(); // Modified by prvai : Removing access specifiers and storage specifiers. return /*udt.AccessSpecifiers.ToString() + " " + udt.StorageSpecifiers + " " +*/ (whichType + " " + udt.Name + " at line " + udt.Location.StartLineNumber); }
public virtual void VisitUserDefinedType(UserDefinedType udt) { VisitChildren(udt); }