Example #1
0
        //public abstract ILanguageValue GetTypeInitializedValue(ILanguageType lang_type);

        //public abstract ILanguageValue CreateInitializedValue(TypePrimitive lang_type);

        public virtual string Describe(IIronyAstObject astItem)
        {
            if (ReferenceEquals(astItem, null))
            {
                return("<null ast item>");
            }

            _astDescription.Log.Clear();

            astItem.AcceptVisitor(_astDescription);

            return(_astDescription.Log.ToString());
        }
Example #2
0
        public override string Describe(IIronyAstObject astItem)
        {
            if (ReferenceEquals(astItem, null))
            {
                return("<null ast item>");
            }

            var astDescr = new GMacAstDescription();

            astDescr.Log.Clear();

            astItem.AcceptVisitor(astDescr);

            return(astDescr.Log.ToString());
        }
        public static TreeNode Convert(IIronyAstObject item)
        {
            var converter = new GMacAstToTreeViewNodes();

            return(item.AcceptVisitor(converter));
        }