ArrayRankSpecifierSyntax

We found 10 examples in language CSharp for this search. You will see 15 fragments of code.
        protected override void OnTranslate(ShaderTranslationContext sc, ArrayRankSpecifierSyntax syntax, ScopeInfo scope)
        {
            sc.Source.OpenScope(ScopeType.Indexer);
        }

         /// <summary>
         /// Provides the element revision pair(s) to test in <see cref="ArrayRankSpecifierServiceProvider_RoslynMLDeltaExpander_OK"/>.
         /// </summary>
         /// <param name="nodeRevisionPairs"> the element revision pair(s) to test</param>
    	 partial void ArrayRankSpecifierServiceProvider_RoslynMLDeltaExpander_DataToTest(ref IEnumerable<(ArrayRankSpecifierSyntax, ArrayRankSpecifierSyntax)> nodeRevisionPairs);

namespace SyntaxNodes
{
    public class ArrayRankSpecifierSyntax : CSharpSyntaxNode
    {
    }
}

using System;

using Pharmatechnik.Nav.Language.Text;

namespace Pharmatechnik.Nav.Language {

    [Serializable]
    [SampleSyntax("[]")]
    public partial class ArrayRankSpecifierSyntax: SyntaxNode {

        internal ArrayRankSpecifierSyntax(TextExtent extent): base(extent) {
        }

        public SyntaxToken OpenBracket  => ChildTokens().FirstOrMissing(SyntaxTokenType.OpenBracket);
        public SyntaxToken CloseBracket => ChildTokens().FirstOrMissing(SyntaxTokenType.CloseBracket);

    }

}


        private IInternalTypeReferenceWithCodeAnalysis CreateElementType(TypeSyntax syntax)
        {
            int rankCount = node.Syntax.RankSpecifiers.Count;
            if (index + 1 == rankCount)
            {
                return syntax.ToTypeReference();
            }

            if (index > rankCount)
            {
                throw new NotSupportedException();
            }

            return new ArrayTypeReferenceWithCodeAnalysis(index + 1);
        }


        public override void Accept(SyntaxVisitor visitor)
        {
            visitor.VisitVariableDeclarator(this);
        }

        public override T Accept<T>(SyntaxVisitor<T> visitor)
        {
            return visitor.VisitVariableDeclarator(this);
        }

using System;
using System.Collections.Generic;

using JetBrains.Annotations;

using Pharmatechnik.Nav.Language.Text;

namespace Pharmatechnik.Nav.Language {

    [Serializable]
    [SampleSyntax("Type[]")]
    public partial class ArrayTypeSyntax: CodeTypeSyntax {

        internal ArrayTypeSyntax(TextExtent extent, CodeTypeSyntax type, IReadOnlyList<ArrayRankSpecifierSyntax> rankSpecifiers)
            : base(extent) {

            AddChildNode(Type            = type);
            AddChildNodes(RankSpecifiers = rankSpecifiers);
        }

        [CanBeNull]
        public CodeTypeSyntax Type { get; }

        public int Rank => RankSpecifiers.Count;

        [NotNull]
        public IReadOnlyList<ArrayRankSpecifierSyntax> RankSpecifiers { get; }

    }

}

        
        public override IEnumerable<SyntaxNode> ChildNodes()
        {
            foreach (var child in base.ChildNodes())
            {
                yield return child;
            }
            
            if (ElementType != null)
                yield return ElementType;
            
            foreach (var item in RankSpecifiers)
            {
                yield return item;
            }
        }
        
        [DebuggerStepThrough]
        public override void Accept(ISyntaxVisitor visitor)
        {
            if (!visitor.Done)
                visitor.VisitArrayType(this);
        }
        
        [DebuggerStepThrough]
        public override T Accept<T>(ISyntaxVisitor<T> visitor)
        {
            return visitor.VisitArrayType(this);
        }


        public override void Accept(SyntaxVisitor visitor)
        {
            visitor.VisitPrefixCastExpression(this);
        }

        public override T Accept<T>(SyntaxVisitor<T> visitor)
        {
            return visitor.VisitPrefixCastExpression(this);
        }


        public override void Accept(SyntaxVisitor visitor)
        {
            visitor.VisitStateProperty(this);
        }

        public override T Accept<T>(SyntaxVisitor<T> visitor)
        {
            return visitor.VisitStateProperty(this);
        }

Microsoft.CodeAnalysis.VisualBasic.Syntax.ArrayRankSpecifierSyntax : VisualBasicSyntaxNode

Methods :

public Int32 get_Rank()
public SyntaxToken get_OpenParenToken()
public ArrayRankSpecifierSyntax WithOpenParenToken(SyntaxToken openParenToken = )
public SyntaxTokenList get_CommaTokens()
public ArrayRankSpecifierSyntax WithCommaTokens(SyntaxTokenList commaTokens = )
public ArrayRankSpecifierSyntax AddCommaTokens(SyntaxToken[] items = )
public SyntaxToken get_CloseParenToken()
public ArrayRankSpecifierSyntax WithCloseParenToken(SyntaxToken closeParenToken = )
public TResult Accept(VisualBasicSyntaxVisitor<TResult> visitor = )
public Void Accept(VisualBasicSyntaxVisitor visitor = )
public ArrayRankSpecifierSyntax Update(SyntaxToken openParenToken = , SyntaxTokenList commaTokens = , SyntaxToken closeParenToken = )
public SyntaxKind Kind()
public String get_Language()
public String ToString()
public String ToFullString()
public Void WriteTo(TextWriter writer = )
public Void SerializeTo(Stream stream = , CancellationToken cancellationToken = null)
public Boolean get_IsDirective()
public Int32 get_SpanStart()
public SyntaxTriviaList GetLeadingTrivia()
public SyntaxTriviaList GetTrailingTrivia()
public SyntaxToken GetFirstToken(Boolean includeZeroWidth = False, Boolean includeSkipped = False, Boolean includeDirectives = False, Boolean includeDocumentationComments = False)
public SyntaxToken GetLastToken(Boolean includeZeroWidth = False, Boolean includeSkipped = False, Boolean includeDirectives = False, Boolean includeDocumentationComments = False)
public IList<DirectiveTriviaSyntax> GetDirectives(Func<DirectiveTriviaSyntax, Boolean> filter = null)
public DirectiveTriviaSyntax GetFirstDirective(Func<DirectiveTriviaSyntax, Boolean> predicate = null)
public DirectiveTriviaSyntax GetLastDirective(Func<DirectiveTriviaSyntax, Boolean> predicate = null)
public SyntaxNodeOrToken ChildThatContainsPosition(Int32 position = )
public Location GetLocation()
public IEnumerable<Diagnostic> GetDiagnostics()
public SyntaxToken FindToken(Int32 position = , Boolean findInsideTrivia = False)
public SyntaxTrivia FindTrivia(Int32 textPosition = , Boolean findInsideTrivia = False)
public Boolean HasAnnotations(IEnumerable<String> annotationKinds = )
public Boolean HasAnnotation(SyntaxAnnotation annotation = )
public IEnumerable<SyntaxAnnotation> GetAnnotations(String annotationKind = )
public IEnumerable<SyntaxAnnotation> GetAnnotations(IEnumerable<String> annotationKinds = )
public IEnumerable<SyntaxNodeOrToken> GetAnnotatedNodesAndTokens(String annotationKind = )
public IEnumerable<SyntaxNodeOrToken> GetAnnotatedNodesAndTokens(String[] annotationKinds = )
public IEnumerable<SyntaxNodeOrToken> GetAnnotatedNodesAndTokens(SyntaxAnnotation annotation = )
public IEnumerable<SyntaxNode> GetAnnotatedNodes(SyntaxAnnotation syntaxAnnotation = )
public IEnumerable<SyntaxNode> GetAnnotatedNodes(String annotationKind = )
public IEnumerable<SyntaxToken> GetAnnotatedTokens(SyntaxAnnotation syntaxAnnotation = )
public IEnumerable<SyntaxToken> GetAnnotatedTokens(String annotationKind = )
public IEnumerable<SyntaxTrivia> GetAnnotatedTrivia(String annotationKind = )
public IEnumerable<SyntaxTrivia> GetAnnotatedTrivia(String[] annotationKinds = )
public IEnumerable<SyntaxTrivia> GetAnnotatedTrivia(SyntaxAnnotation annotation = )
public T CopyAnnotationsTo(T node = )
public Boolean IsEquivalentTo(SyntaxNode node = , Boolean topLevel = False)
public Int32 get_RawKind()
public SyntaxTree get_SyntaxTree()
public TextSpan get_FullSpan()
public TextSpan get_Span()
public Int32 get_SpanStart()
public SourceText GetText(Encoding encoding = null, SourceHashAlgorithm checksumAlgorithm = Sha1)
public Boolean IsEquivalentTo(SyntaxNode other = )
public Boolean IsIncrementallyIdenticalTo(SyntaxNode other = )
public Boolean get_IsMissing()
public Boolean IsPartOfStructuredTrivia()
public Boolean get_IsStructuredTrivia()
public Boolean get_HasStructuredTrivia()
public Boolean get_ContainsSkippedText()
public Boolean get_ContainsDirectives()
public Boolean get_ContainsDiagnostics()
public Boolean Contains(SyntaxNode node = )
public Boolean get_HasLeadingTrivia()
public Boolean get_HasTrailingTrivia()
public Location GetLocation()
public IEnumerable<Diagnostic> GetDiagnostics()
public SyntaxReference GetReference()
public SyntaxNode get_Parent()
public SyntaxTrivia get_ParentTrivia()
public ChildSyntaxList ChildNodesAndTokens()
public IEnumerable<SyntaxNode> ChildNodes()
public IEnumerable<SyntaxNode> Ancestors(Boolean ascendOutOfTrivia = True)
public IEnumerable<SyntaxNode> AncestorsAndSelf(Boolean ascendOutOfTrivia = True)
public TNode FirstAncestorOrSelf(Func<TNode, Boolean> predicate = null, Boolean ascendOutOfTrivia = True)
public TNode FirstAncestorOrSelf(Func<TNode, TArg, Boolean> predicate = , TArg argument = , Boolean ascendOutOfTrivia = True)
public IEnumerable<SyntaxNode> DescendantNodes(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNode> DescendantNodes(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNode> DescendantNodesAndSelf(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNode> DescendantNodesAndSelf(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNodeOrToken> DescendantNodesAndTokens(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNodeOrToken> DescendantNodesAndTokens(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxNodeOrToken> DescendantNodesAndTokensAndSelf(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public SyntaxNode FindNode(TextSpan span = , Boolean findInsideTrivia = False, Boolean getInnermostNodeForTie = False)
public SyntaxToken FindToken(Int32 position = , Boolean findInsideTrivia = False)
public SyntaxToken GetFirstToken(Boolean includeZeroWidth = False, Boolean includeSkipped = False, Boolean includeDirectives = False, Boolean includeDocumentationComments = False)
public SyntaxToken GetLastToken(Boolean includeZeroWidth = False, Boolean includeSkipped = False, Boolean includeDirectives = False, Boolean includeDocumentationComments = False)
public IEnumerable<SyntaxToken> ChildTokens()
public IEnumerable<SyntaxToken> DescendantTokens(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxToken> DescendantTokens(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public SyntaxTriviaList GetLeadingTrivia()
public SyntaxTriviaList GetTrailingTrivia()
public SyntaxTrivia FindTrivia(Int32 position = , Boolean findInsideTrivia = False)
public SyntaxTrivia FindTrivia(Int32 position = , Func<SyntaxTrivia, Boolean> stepInto = )
public IEnumerable<SyntaxTrivia> DescendantTrivia(Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public IEnumerable<SyntaxTrivia> DescendantTrivia(TextSpan span = , Func<SyntaxNode, Boolean> descendIntoChildren = null, Boolean descendIntoTrivia = False)
public Boolean get_ContainsAnnotations()
public Boolean HasAnnotations(String annotationKind = )
public Type GetType()
public Boolean Equals(Object obj = )
public Int32 GetHashCode()