internal static void TestUriString(int level, ReSharper.NTriples.Tree.IUriString param, String caller) { if (!CanVisitFurther(param)) { return; } VisitElement(level, param, caller); { JetBrains.ReSharper.Psi.Tree.ITokenNode child = ((ReSharper.NTriples.Tree.IUriString)param).Value; TestTokenNode(level + 1, (JetBrains.ReSharper.Psi.Tree.ITokenNode)child, "Value"); } }
public static ReSharper.NTriples.Tree.IUriIdentifier GetByUriStringElement(ReSharper.NTriples.Tree.IUriString param) { if (param == null) { return(null); } TreeElement current = (TreeElement)param; if (current.parent is ReSharper.NTriples.Impl.Tree.UriIdentifier) { if (current.parent.GetChildRole(current) != ReSharper.NTriples.Impl.Tree.UriIdentifier.URISTRING) { return(null); } current = current.parent; } else { return(null); } return((ReSharper.NTriples.Tree.IUriIdentifier)current); }
internal static void TestUriIdentifier(int level, ReSharper.NTriples.Tree.IUriIdentifier param, String caller) { if (!CanVisitFurther(param)) { return; } VisitElement(level, param, caller); { ReSharper.NTriples.Tree.ILocalName child = ((ReSharper.NTriples.Tree.IUriIdentifier)param).LocalName; TestLocalName(level + 1, (ReSharper.NTriples.Tree.ILocalName)child, "LocalName"); } { ReSharper.NTriples.Tree.IPrefix child = ((ReSharper.NTriples.Tree.IUriIdentifier)param).Prefix; TestPrefix(level + 1, (ReSharper.NTriples.Tree.IPrefix)child, "Prefix"); } { ReSharper.NTriples.Tree.IUriString child = ((ReSharper.NTriples.Tree.IUriIdentifier)param).UriStringElement; TestUriString(level + 1, (ReSharper.NTriples.Tree.IUriString)child, "UriStringElement"); } { JetBrains.ReSharper.Psi.Tree.ITokenNode child = ((ReSharper.NTriples.Tree.IUriIdentifier)param).UriString; TestTokenNode(level + 1, (JetBrains.ReSharper.Psi.Tree.ITokenNode)child, "UriString"); } }
public virtual void VisitUriString([JetBrains.Annotations.NotNull] ReSharper.NTriples.Tree.IUriString uriStringParam, TContext context) { VisitNode(uriStringParam, context); }