ArrayRankSpecifierSyntax
Namespace:
Microsoft.CodeAnalysis.CSharp
We found 10 examples in language CSharp for this search.
You will see 15 fragments of code.
Other methods
Other methods
Project:SharpShader
File:ArrayRankProcessor.cs
Examples:1
protected override void OnTranslate(ShaderTranslationContext sc, ArrayRankSpecifierSyntax syntax, ScopeInfo scope)
{
sc.Source.OpenScope(ScopeType.Indexer);
}
Project:Change-Detection-Foundation
File:RoslynMLDeltaExpanderArrayRankSpecifierSyntaxTests.cs
Examples:1
/// <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);
Project:VRCodeing
File:ArrayRankSpecifierSyntax.cs
Examples:1
namespace SyntaxNodes
{
public class ArrayRankSpecifierSyntax : CSharpSyntaxNode
{
}
}
Project:Nav.Language.Extensions
File:ArrayRankSpecifierSyntax.cs
Examples:1
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);
}
}
Project:CSharpDom
File:ArrayTypeReferenceWithCodeAnalysis.cs
Examples:1
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);
}
Project:ShaderTools
File:VariableDeclaratorSyntax.cs
Examples:2
public override void Accept(SyntaxVisitor visitor)
{
visitor.VisitVariableDeclarator(this);
}
public override T Accept<T>(SyntaxVisitor<T> visitor)
{
return visitor.VisitVariableDeclarator(this);
}
Project:Nav.Language.Extensions
File:ArrayTypeSyntax.cs
Examples:1
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; }
}
}
Project:CSharpSyntax
File:ArrayTypeSyntax.cs
Examples:3
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);
}
Project:ShaderTools
File:CastExpressionSyntax.cs
Examples:2
public override void Accept(SyntaxVisitor visitor)
{
visitor.VisitPrefixCastExpression(this);
}
public override T Accept<T>(SyntaxVisitor<T> visitor)
{
return visitor.VisitPrefixCastExpression(this);
}
Project:ShaderTools
File:StatePropertySyntax.cs
Examples:2
public override void Accept(SyntaxVisitor visitor)
{
visitor.VisitStateProperty(this);
}
public override T Accept<T>(SyntaxVisitor<T> visitor)
{
return visitor.VisitStateProperty(this);
}
Microsoft.CodeAnalysis.CSharp.Syntax.ArrayRankSpecifierSyntax : IFormattable
Methods :
public Int32 get_Rank()public SyntaxToken get_OpenBracketToken()
public SeparatedSyntaxList<ExpressionSyntax> get_Sizes()
public SyntaxToken get_CloseBracketToken()
public Void Accept(CSharpSyntaxVisitor visitor = )
public TResult Accept(CSharpSyntaxVisitor<TResult> visitor = )
public ArrayRankSpecifierSyntax Update(SyntaxToken openBracketToken = , SeparatedSyntaxList<ExpressionSyntax> sizes = , SyntaxToken closeBracketToken = )
public ArrayRankSpecifierSyntax WithOpenBracketToken(SyntaxToken openBracketToken = )
public ArrayRankSpecifierSyntax WithSizes(SeparatedSyntaxList<ExpressionSyntax> sizes = )
public ArrayRankSpecifierSyntax WithCloseBracketToken(SyntaxToken closeBracketToken = )
public ArrayRankSpecifierSyntax AddSizes(ExpressionSyntax[] items = )
public SyntaxKind Kind()
public String get_Language()
public SyntaxTriviaList GetLeadingTrivia()
public SyntaxTriviaList GetTrailingTrivia()
public Location GetLocation()
public IEnumerable<Diagnostic> GetDiagnostics()
public DirectiveTriviaSyntax GetFirstDirective(Func<DirectiveTriviaSyntax, Boolean> predicate = null)
public DirectiveTriviaSyntax GetLastDirective(Func<DirectiveTriviaSyntax, Boolean> predicate = null)
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 SyntaxToken FindToken(Int32 position = , Boolean findInsideTrivia = False)
public SyntaxTrivia FindTrivia(Int32 position = , Func<SyntaxTrivia, Boolean> stepInto = )
public SyntaxTrivia FindTrivia(Int32 position = , 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 Void SerializeTo(Stream stream = , CancellationToken cancellationToken = null)
public Int32 get_RawKind()
public SyntaxTree get_SyntaxTree()
public TextSpan get_FullSpan()
public TextSpan get_Span()
public Int32 get_SpanStart()
public String ToString()
public String ToFullString()
public Void WriteTo(TextWriter writer = )
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 SyntaxNodeOrToken ChildThatContainsPosition(Int32 position = )
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()