예제 #1
0
        public static ReSharper.NTriples.Tree.INTriplesFile GetBySentence(ReSharper.NTriples.Tree.ISentence param)
        {
            if (param == null)
            {
                return(null);
            }
            TreeElement current = (TreeElement)param;

            if (current.parent is ReSharper.NTriples.Impl.Tree.Sentences)
            {
                if (current.parent.GetChildRole(current) != ReSharper.NTriples.Impl.Tree.Sentences.SENTENCES)
                {
                    return(null);
                }
                current = current.parent;
            }
            else
            {
                return(null);
            }
            if (current.parent is ReSharper.NTriples.Impl.Tree.NTriplesFile)
            {
                if (current.parent.GetChildRole(current) != ReSharper.NTriples.Impl.Tree.NTriplesFile.SENTENCES)
                {
                    return(null);
                }
                current = current.parent;
            }
            else
            {
                return(null);
            }
            return((ReSharper.NTriples.Tree.INTriplesFile)current);
        }
예제 #2
0
 internal static void TestSentence(int level, ReSharper.NTriples.Tree.ISentence param, String caller)
 {
     if (!CanVisitFurther(param))
     {
         return;
     }
     VisitElement(level, param, caller);
     {
         ReSharper.NTriples.Tree.IDirective child = ((ReSharper.NTriples.Tree.ISentence)param).Directive;
         TestDirective(level + 1, (ReSharper.NTriples.Tree.IDirective)child, "Directive");
     }
     {
         ReSharper.NTriples.Tree.IStatement child = ((ReSharper.NTriples.Tree.ISentence)param).Statement;
         TestStatement(level + 1, (ReSharper.NTriples.Tree.IStatement)child, "Statement");
     }
 }
예제 #3
0
 public virtual void VisitSentence([JetBrains.Annotations.NotNull] ReSharper.NTriples.Tree.ISentence sentenceParam, TContext context)
 {
     VisitNode(sentenceParam, context);
 }