64 instantiations of SyntaxTokenList
Microsoft.CodeAnalysis (10)
Syntax\SyntaxListBuilderExtensions.cs (1)
16return new SyntaxTokenList(null, builder.ToListNode(), 0, 0);
Syntax\SyntaxTokenList.cs (5)
69return new SyntaxTokenList(parent: null, CreateNodeFromSpan(tokens), position: 0, index: 0); 374return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0); 390return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0); 436return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0); 524return new SyntaxTokenList(token);
Syntax\SyntaxTokenListBuilder.cs (4)
96return new SyntaxTokenList(null, _nodes[0], 0, 0); 100return new SyntaxTokenList(null, InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!), 0, 0); 105return new SyntaxTokenList(null, InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!, _nodes[2]!), 0, 0); 107return new SyntaxTokenList(null, InternalSyntax.SyntaxList.List(_nodes, _count), 0, 0);
Microsoft.CodeAnalysis.CSharp (3)
Syntax\SyntaxFactory.cs (3)
1268return new SyntaxTokenList(token); 1277return new SyntaxTokenList(tokens); 1287return new SyntaxTokenList(tokens);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
204var modifiers = new SyntaxTokenList();
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
204var modifiers = new SyntaxTokenList();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (36)
Generated\Syntax.Test.xml.Generated.cs (36)
10392=> SyntaxFactory.AnonymousMethodExpression(new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), default(ParameterListSyntax), GenerateBlock(), default(ExpressionSyntax)); 10395=> SyntaxFactory.SimpleLambdaExpression(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateParameter(), SyntaxFactory.Token(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax)); 10401=> SyntaxFactory.ParenthesizedLambdaExpression(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), default(TypeSyntax), GenerateParameterList(), SyntaxFactory.Token(SyntaxKind.EqualsGreaterThanToken), default(BlockSyntax), default(ExpressionSyntax)); 10425=> SyntaxFactory.ImplicitArrayCreationExpression(SyntaxFactory.Token(SyntaxKind.NewKeyword), SyntaxFactory.Token(SyntaxKind.OpenBracketToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.CloseBracketToken), GenerateInitializerExpression()); 10551=> SyntaxFactory.GlobalStatement(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateBlock()); 10557=> SyntaxFactory.LocalFunctionStatement(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10560=> SyntaxFactory.LocalDeclarationStatement(new SyntaxList<AttributeListSyntax>(), default(SyntaxToken), default(SyntaxToken), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10689=> SyntaxFactory.NamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.OpenBraceToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>(), SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default(SyntaxToken)); 10692=> SyntaxFactory.FileScopedNamespaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.NamespaceKeyword), GenerateIdentifierName(), SyntaxFactory.Token(SyntaxKind.SemicolonToken), new SyntaxList<ExternAliasDirectiveSyntax>(), new SyntaxList<UsingDirectiveSyntax>(), new SyntaxList<MemberDeclarationSyntax>()); 10719=> SyntaxFactory.ClassDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10722=> SyntaxFactory.StructDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10725=> SyntaxFactory.InterfaceDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10728=> SyntaxFactory.RecordDeclaration(SyntaxKind.RecordDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Keyword"), default(SyntaxToken), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), default(ParameterListSyntax), default(BaseListSyntax), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(SyntaxToken), new SyntaxList<MemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10731=> SyntaxFactory.EnumDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier("Identifier"), default(BaseListSyntax), default(SyntaxToken), new SeparatedSyntaxList<EnumMemberDeclarationSyntax>(), default(SyntaxToken), default(SyntaxToken)); 10734=> SyntaxFactory.DelegateDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), GenerateIdentifierName(), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10737=> SyntaxFactory.EnumMemberDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), default(EqualsValueClauseSyntax)); 10770=> SyntaxFactory.FieldDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10773=> SyntaxFactory.EventFieldDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EventKeyword), GenerateVariableDeclaration(), SyntaxFactory.Token(SyntaxKind.SemicolonToken)); 10779=> SyntaxFactory.MethodDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(TypeParameterListSyntax), GenerateParameterList(), new SyntaxList<TypeParameterConstraintClauseSyntax>(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10782=> SyntaxFactory.OperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), SyntaxFactory.Token(SyntaxKind.PlusToken), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10785=> SyntaxFactory.ConversionOperatorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.ImplicitKeyword), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.OperatorKeyword), default(SyntaxToken), GenerateIdentifierName(), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10788=> SyntaxFactory.ConstructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(ConstructorInitializerSyntax), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10794=> SyntaxFactory.DestructorDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.TildeToken), SyntaxFactory.Identifier("Identifier"), GenerateParameterList(), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10797=> SyntaxFactory.PropertyDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(EqualsValueClauseSyntax), default(SyntaxToken)); 10803=> SyntaxFactory.EventDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.EventKeyword), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Identifier("Identifier"), default(AccessorListSyntax), default(SyntaxToken)); 10806=> SyntaxFactory.IndexerDeclaration(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName(), default(ExplicitInterfaceSpecifierSyntax), SyntaxFactory.Token(SyntaxKind.ThisKeyword), GenerateBracketedParameterList(), default(AccessorListSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10812=> SyntaxFactory.AccessorDeclaration(SyntaxKind.GetAccessorDeclaration, new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.GetKeyword), default(BlockSyntax), default(ArrowExpressionClauseSyntax), default(SyntaxToken)); 10821=> SyntaxFactory.Parameter(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), default(TypeSyntax), SyntaxFactory.Identifier("Identifier"), default(EqualsValueClauseSyntax)); 10824=> SyntaxFactory.FunctionPointerParameter(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), GenerateIdentifierName()); 10827=> SyntaxFactory.IncompleteMember(new SyntaxList<AttributeListSyntax>(), new SyntaxTokenList(), default(TypeSyntax)); 10830=> SyntaxFactory.SkippedTokensTrivia(new SyntaxTokenList()); 10881=> SyntaxFactory.XmlTextAttribute(GenerateXmlName(), SyntaxFactory.Token(SyntaxKind.EqualsToken), SyntaxFactory.Token(SyntaxKind.SingleQuoteToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.SingleQuoteToken)); 10890=> SyntaxFactory.XmlText(new SyntaxTokenList()); 10893=> SyntaxFactory.XmlCDataSection(SyntaxFactory.Token(SyntaxKind.XmlCDataStartToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.XmlCDataEndToken)); 10896=> SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.XmlProcessingInstructionStartToken), GenerateXmlName(), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.XmlProcessingInstructionEndToken)); 10899=> SyntaxFactory.XmlComment(SyntaxFactory.Token(SyntaxKind.XmlCommentStartToken), new SyntaxTokenList(), SyntaxFactory.Token(SyntaxKind.XmlCommentEndToken));
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\SyntaxNodeFactories.vb (3)
798Return New SyntaxTokenList() 806Return New SyntaxTokenList(token) 814Return New SyntaxTokenList(tokens)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
162Return New SyntaxTokenList()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
TestSyntaxNodes.vb (1)
460Dim l = New SyntaxTokenList
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (1)
162Return New SyntaxTokenList()
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SyntaxGenerator.cs (1)
1444return new SyntaxTokenList(newList.Select(
Microsoft.Interop.ComInterfaceGenerator (1)
ComInterfaceGenerator.cs (1)
369var methodSyntaxTemplate = new ContainingSyntax(new SyntaxTokenList(syntax.Modifiers.Where(static m => !m.IsKind(SyntaxKind.NewKeyword))).StripAccessibilityModifiers(), SyntaxKind.MethodDeclaration, syntax.Identifier, syntax.TypeParameterList);
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSImportGenerator.cs (1)
103return new SyntaxTokenList(strippedTokens);
Microsoft.Interop.LibraryImportGenerator (1)
LibraryImportGenerator.cs (1)
170return new SyntaxTokenList(strippedTokens);
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
DownlevelLibraryImportGenerator.cs (1)
112return new SyntaxTokenList(strippedTokens);
Microsoft.Interop.SourceGeneration (2)
SyntaxExtensions.cs (2)
81return new SyntaxTokenList(strippedTokens); 95return new SyntaxTokenList(strippedTokens);
754 references to SyntaxTokenList
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
68var newModifiers = node.Modifiers;
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentParametersShouldBePublicCodeFixProvider.cs (1)
68var newModifiers = node.Modifiers;
Microsoft.CodeAnalysis (50)
Syntax\ISkippedTokensTriviaSyntax.cs (1)
16SyntaxTokenList Tokens { get; }
Syntax\SyntaxListBuilder.cs (2)
137public void AddRange(SyntaxTokenList list) 142public void AddRange(SyntaxTokenList list, int offset, int length)
Syntax\SyntaxListBuilderExtensions.cs (2)
9public static SyntaxTokenList ToTokenList(this SyntaxListBuilder? builder) 13return default(SyntaxTokenList);
Syntax\SyntaxTokenList.cs (33)
22[CollectionBuilder(typeof(SyntaxTokenList), methodName: "Create")] 23public readonly partial struct SyntaxTokenList : IEquatable<SyntaxTokenList>, IReadOnlyList<SyntaxToken> 64public static SyntaxTokenList Create(ReadOnlySpan<SyntaxToken> tokens) 247/// Returns a list which contains all elements of <see cref="SyntaxTokenList"/> in reversed order. 249/// <returns><see cref="Reversed"/> which contains all elements of <see cref="SyntaxTokenList"/> in reversed order</returns> 311/// Creates a new <see cref="SyntaxTokenList"/> with the specified token added to the end. 314public SyntaxTokenList Add(SyntaxToken token) 320/// Creates a new <see cref="SyntaxTokenList"/> with the specified tokens added to the end. 323public SyntaxTokenList AddRange(IEnumerable<SyntaxToken> tokens) 329/// Creates a new <see cref="SyntaxTokenList"/> with the specified token insert at the index. 333public SyntaxTokenList Insert(int index, SyntaxToken token) 344/// Creates a new <see cref="SyntaxTokenList"/> with the specified tokens insert at the index. 348public SyntaxTokenList InsertRange(int index, IEnumerable<SyntaxToken> tokens) 378/// Creates a new <see cref="SyntaxTokenList"/> with the token at the specified index removed. 381public SyntaxTokenList RemoveAt(int index) 394/// Creates a new <see cref="SyntaxTokenList"/> with the specified token removed. 397public SyntaxTokenList Remove(SyntaxToken tokenInList) 409/// Creates a new <see cref="SyntaxTokenList"/> with the specified token replaced with a new token. 413public SyntaxTokenList Replace(SyntaxToken tokenInList, SyntaxToken newToken) 424/// Creates a new <see cref="SyntaxTokenList"/> with the specified token replaced with new tokens. 428public SyntaxTokenList ReplaceRange(SyntaxToken tokenInList, IEnumerable<SyntaxToken> newTokens) 446/// Returns an enumerator for the tokens in the <see cref="SyntaxTokenList"/> 478/// <returns>True if the two <see cref="SyntaxTokenList"/>s are equal.</returns> 479public static bool operator ==(SyntaxTokenList left, SyntaxTokenList right) 489/// <returns>True if the two <see cref="SyntaxTokenList"/>s are not equal.</returns> 490public static bool operator !=(SyntaxTokenList left, SyntaxTokenList right) 495public bool Equals(SyntaxTokenList other) 501/// Compares this <see cref=" SyntaxTokenList"/> with the <paramref name="obj"/> for equality. 506return obj is SyntaxTokenList list && Equals(list); 510/// Serves as a hash function for the <see cref="SyntaxTokenList"/> 522public static SyntaxTokenList Create(SyntaxToken token)
Syntax\SyntaxTokenList.Enumerator.cs (3)
20/// A structure for enumerating a <see cref="SyntaxTokenList"/> 60internal Enumerator(in SyntaxTokenList list) 136internal EnumeratorImpl(in SyntaxTokenList list)
Syntax\SyntaxTokenList.Reversed.cs (4)
22private readonly SyntaxTokenList _list; 24public Reversed(SyntaxTokenList list) 82internal Enumerator(in SyntaxTokenList list) 147internal EnumeratorImpl(in SyntaxTokenList list)
Syntax\SyntaxTokenListBuilder.cs (5)
46public void Add(SyntaxTokenList list) 51public void Add(SyntaxTokenList list, int offset, int length) 89public SyntaxTokenList ToList() 112return default(SyntaxTokenList); 116public static implicit operator SyntaxTokenList(SyntaxTokenListBuilder builder)
Microsoft.CodeAnalysis.CodeStyle (8)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
72var modifiers = _syntaxFacts.GetModifiers(memberDeclaration);
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (4)
116var textTokens = GetTextTokens(xmlText); 158protected abstract SyntaxTokenList GetTextTokens(TXmlTextSyntax xmlText); 159protected abstract SyntaxTokenList GetTextTokens(TXmlTextAttributeSyntax xmlTextAttribute); 162private static void AppendTextTokens(StringBuilder sb, SyntaxTokenList textTokens)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (2)
470SyntaxTokenList GetModifiers(SyntaxNode? node); 474SyntaxNode? WithModifiers(SyntaxNode? node, SyntaxTokenList modifiers);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
30protected abstract SyntaxTokenList GetTextTokens(TXmlTextSyntax xmlText);
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (1)
69var orderedModifiers = new SyntaxTokenList(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
548protected static SyntaxTokenList GetUpdatedDeclarationAccessibilityModifiers( 549ArrayBuilder<SyntaxToken> newModifierTokens, SyntaxTokenList modifiersList,
Microsoft.CodeAnalysis.CSharp (137)
Binder\Binder_Flags.cs (1)
94internal Binder SetOrClearUnsafeRegionIfNecessary(SyntaxTokenList modifiers, bool isIteratorBody = false)
CSharpExtensions.cs (5)
144public static int IndexOf(this SyntaxTokenList list, SyntaxKind kind) 155public static bool Any(this SyntaxTokenList list, SyntaxKind kind) 160internal static SyntaxToken FirstOrDefault(this SyntaxTokenList list, SyntaxKind kind) 261public static SyntaxTokenList Insert(this SyntaxTokenList list, int index, params SyntaxToken[] items)
Lowering\Instrumentation\CodeCoverageInstrumenter.cs (1)
623private static TextSpan SkipAttributes(SyntaxNode syntax, SyntaxList<AttributeListSyntax> attributes, SyntaxTokenList modifiers, SyntaxToken keyword, TypeSyntax? type)
Lowering\Instrumentation\DebugInfoInjector_SequencePoints.cs (2)
53private static TextSpan CreateSpan(SyntaxTokenList startOpt, SyntaxNodeOrToken startFallbackOpt, SyntaxNodeOrToken endOpt) 100var modifiers = ((BaseFieldDeclarationSyntax)declarationSyntax.Parent).Modifiers;
Parser\LanguageParser.cs (3)
5070private static SyntaxTokenList GetOriginalModifiers(CSharp.CSharpSyntaxNode decl) 5105return default(SyntaxTokenList); 5121var mods = GetOriginalModifiers(parent);
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
38SyntaxTokenList modifiers = returnTypeParameter.Modifiers;
Symbols\Source\GlobalExpressionVariable.cs (2)
61protected override SyntaxTokenList ModifiersTokenList => default(SyntaxTokenList);
Symbols\Source\ModifierUtils.cs (4)
18SyntaxTokenList modifiers, 45SyntaxTokenList? modifierTokens, 128private static void ReportPartialError(Location errorLocation, BindingDiagnosticBag diagnostics, SyntaxTokenList? modifierTokens) 386this SyntaxTokenList modifiers, bool isForTypeDeclaration, DiagnosticBag diagnostics, bool isOrdinaryMethod = false)
Symbols\Source\ParameterHelpers.cs (1)
921internal static RefKind GetModifiers(SyntaxTokenList modifiers, out SyntaxToken refnessKeyword, out SyntaxToken paramsKeyword, out SyntaxToken thisKeyword, out ScopedKind scope)
Symbols\Source\SourceDestructorSymbol.cs (1)
129private static DeclarationModifiers MakeModifiers(NamedTypeSymbol containingType, SyntaxTokenList modifiers, Location location, BindingDiagnosticBag diagnostics, out bool modifierErrors)
Symbols\Source\SourceEventSymbol.cs (2)
42SyntaxTokenList modifiers, 443private DeclarationModifiers MakeModifiers(SyntaxTokenList modifiers, bool explicitInterfaceImplementation,
Symbols\Source\SourceFieldLikeEventSymbol.cs (1)
28internal SourceFieldLikeEventSymbol(SourceMemberContainerTypeSymbol containingType, Binder binder, SyntaxTokenList modifiers, VariableDeclaratorSyntax declaratorSyntax, BindingDiagnosticBag diagnostics)
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2823private static bool ContainsModifier(SyntaxTokenList modifiers, SyntaxKind modifier)
Symbols\Source\SourceMemberFieldSymbol.cs (3)
45protected abstract SyntaxTokenList ModifiersTokenList { get; } 165internal static DeclarationModifiers MakeModifiers(NamedTypeSymbol containingType, SyntaxToken firstIdentifier, SyntaxTokenList modifiers, bool isRefField, BindingDiagnosticBag diagnostics, out bool modifierErrors) 385protected sealed override SyntaxTokenList ModifiersTokenList
Symbols\Source\SourcePropertyAccessorSymbol.cs (3)
182SyntaxTokenList modifiers, 224bool hasBlockBody, bool hasExpressionBody, SyntaxTokenList modifiers, MethodKind methodKind, bool isNullableAnalysisEnabled, 492private static DeclarationModifiers MakeModifiers(NamedTypeSymbol containingType, SyntaxTokenList modifiers, bool isExplicitInterfaceImplementation,
Symbols\Source\SourcePropertySymbol.cs (4)
57SyntaxTokenList modifiersTokenList = GetModifierTokensSyntax(syntax); 177private static SyntaxTokenList GetModifierTokensSyntax(SyntaxNode syntax) 360SyntaxTokenList modifiers, 548SyntaxTokenList modifiers = GetModifierTokensSyntax(syntax);
Syntax\AnonymousFunctionExpressionSyntax.cs (1)
33private protected SyntaxTokenList UpdateAsyncKeyword(SyntaxToken asyncKeyword)
Syntax\BaseFieldDeclarationSyntax.cs (1)
10public abstract override SyntaxTokenList Modifiers { get; }
Syntax\BaseMethodDeclarationSyntax.cs (1)
10public abstract override SyntaxTokenList Modifiers { get; }
Syntax\BasePropertyDeclarationSyntax.cs (1)
10public abstract override SyntaxTokenList Modifiers { get; }
Syntax\ClassDeclarationSyntax.cs (1)
9public ClassDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\ConstructorDeclarationSyntax.cs (5)
15SyntaxTokenList modifiers, 39SyntaxTokenList modifiers, 56SyntaxTokenList modifiers, 74SyntaxTokenList modifiers, 91SyntaxTokenList modifiers,
Syntax\ConversionOperatorDeclarationSyntax.cs (2)
11SyntaxTokenList modifiers, 35SyntaxTokenList modifiers,
Syntax\CSharpSyntaxRewriter.cs (2)
251public virtual SyntaxTokenList VisitList(SyntaxTokenList list)
Syntax\DestructorDeclarationSyntax.cs (5)
15SyntaxTokenList modifiers, 39SyntaxTokenList modifiers, 55SyntaxTokenList modifiers, 73SyntaxTokenList modifiers, 89SyntaxTokenList modifiers,
Syntax\EventDeclarationSyntax.cs (2)
13public EventDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList) 18public EventDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken)
Syntax\IndexerDeclarationSyntax.cs (1)
38SyntaxTokenList modifiers,
Syntax\InterfaceDeclarationSyntax.cs (1)
9public InterfaceDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\LocalDeclarationStatementSyntax.cs (5)
11public LocalDeclarationStatementSyntax Update(SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken) 14public LocalDeclarationStatementSyntax Update(SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken) 23public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken) 26public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxToken awaitKeyword, SyntaxToken usingKeyword, SyntaxTokenList modifiers, VariableDeclarationSyntax declaration, SyntaxToken semicolonToken) 29public static LocalDeclarationStatementSyntax LocalDeclarationStatement(SyntaxTokenList modifiers, VariableDeclarationSyntax declaration)
Syntax\LocalFunctionStatementSyntax.cs (3)
12public LocalFunctionStatementSyntax Update(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax body, ArrowExpressionClauseSyntax expressionBody, SyntaxToken semicolonToken) 24public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody) 30public static LocalFunctionStatementSyntax LocalFunctionStatement(SyntaxTokenList modifiers, TypeSyntax returnType, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax parameterList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, BlockSyntax? body, ArrowExpressionClauseSyntax? expressionBody, SyntaxToken semicolonToken)
Syntax\MethodDeclarationSyntax.cs (1)
29SyntaxTokenList modifiers,
Syntax\OperatorDeclarationSyntax.cs (2)
11SyntaxTokenList modifiers, 35SyntaxTokenList modifiers,
Syntax\ParenthesizedLambdaExpressionSyntax.cs (6)
33public ParenthesizedLambdaExpressionSyntax Update(SyntaxTokenList modifiers, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody) 36public ParenthesizedLambdaExpressionSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody) 49=> ParenthesizedLambdaExpression(default(SyntaxTokenList), parameterList, block, expressionBody); 51public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxTokenList modifiers, ParameterListSyntax parameterList, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody) 54public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxTokenList modifiers, ParameterListSyntax parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody) 57public static ParenthesizedLambdaExpressionSyntax ParenthesizedLambdaExpression(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, ParameterListSyntax parameterList, BlockSyntax? block, ExpressionSyntax? expressionBody)
Syntax\PropertyDeclarationSyntax.cs (2)
34public AccessorDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax? body, SyntaxToken semicolonToken) 46return SyntaxFactory.AccessorDeclaration(kind, default(SyntaxList<AttributeListSyntax>), default(SyntaxTokenList), SyntaxFactory.Token(GetAccessorDeclarationKeywordKind(kind)), body, expressionBody: null, default(SyntaxToken));
Syntax\RecordDeclarationSyntax.cs (3)
13public RecordDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, 27public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, 35public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
Syntax\SimpleLambdaExpressionSyntax.cs (4)
33public SimpleLambdaExpressionSyntax Update(SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody) 46=> SimpleLambdaExpression(attributeLists: default, default(SyntaxTokenList), parameter, block, expressionBody); 48public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxTokenList modifiers, ParameterSyntax parameter, SyntaxToken arrowToken, BlockSyntax? block, ExpressionSyntax? expressionBody) 51public static SimpleLambdaExpressionSyntax SimpleLambdaExpression(SyntaxTokenList modifiers, ParameterSyntax parameter, BlockSyntax? block, ExpressionSyntax? expressionBody)
Syntax\StructDeclarationSyntax.cs (1)
9public StructDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
Syntax\SyntaxEquivalence.cs (2)
46public static bool AreEquivalent(SyntaxTokenList before, SyntaxTokenList after)
Syntax\SyntaxExtensions.cs (3)
269SyntaxTokenList modifiers, 291SyntaxTokenList modifiers, 314SyntaxTokenList modifiers,
Syntax\SyntaxFactory.cs (42)
1053public static XmlTextAttributeSyntax XmlTextAttribute(string name, SyntaxKind quoteKind, SyntaxTokenList textTokens) 1064public static XmlTextAttributeSyntax XmlTextAttribute(XmlNameSyntax name, SyntaxKind quoteKind, SyntaxTokenList textTokens) 1257public static SyntaxTokenList TokenList() 1259return default(SyntaxTokenList); 1266public static SyntaxTokenList TokenList(SyntaxToken token) 1275public static SyntaxTokenList TokenList(params SyntaxToken[] tokens) 1285public static SyntaxTokenList TokenList(IEnumerable<SyntaxToken> tokens) 1997public static bool AreEquivalent(SyntaxTokenList oldList, SyntaxTokenList newList) 2452SyntaxTokenList modifiers, 2471SyntaxTokenList modifiers, 2492SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, 2516SyntaxTokenList modifiers, 2537SyntaxTokenList modifiers, 2564SyntaxTokenList modifiers, 2587SyntaxTokenList modifiers, 2612SyntaxTokenList modifiers, 2633SyntaxTokenList modifiers, 2687public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, BlockSyntax body) 2689public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, BlockSyntax body, SyntaxToken semicolonToken) 2691public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, ArrowExpressionClauseSyntax expressionBody) 2693public static AccessorDeclarationSyntax AccessorDeclaration(SyntaxKind kind, SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, ArrowExpressionClauseSyntax expressionBody, SyntaxToken semicolonToken) 2709public static EventDeclarationSyntax EventDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, AccessorListSyntax accessorList) 2715public static EventDeclarationSyntax EventDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken eventKeyword, TypeSyntax type, ExplicitInterfaceSpecifierSyntax explicitInterfaceSpecifier, SyntaxToken identifier, SyntaxToken semicolonToken) 2771? AnonymousMethodExpression(default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.DelegateKeyword), parameterList, block, null) 2857public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken) 2866public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members) 2872public static ClassDeclarationSyntax ClassDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members) 2877=> SyntaxFactory.ClassDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.ClassKeyword), identifier, null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2881=> SyntaxFactory.ClassDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.ClassKeyword), SyntaxFactory.Identifier(identifier), null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2884public static StructDeclarationSyntax StructDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken) 2893public static StructDeclarationSyntax StructDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members) 2899public static StructDeclarationSyntax StructDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members) 2904=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.StructKeyword), identifier, null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2908=> SyntaxFactory.StructDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.StructKeyword), SyntaxFactory.Identifier(identifier), null, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2911public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken) 2917public static InterfaceDeclarationSyntax InterfaceDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, TypeParameterListSyntax? typeParameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members) 2922=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), identifier, null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2926=> SyntaxFactory.InterfaceDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.InterfaceKeyword), SyntaxFactory.Identifier(identifier), null, null, default, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2929public static EnumDeclarationSyntax EnumDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, BaseListSyntax? baseList, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members) 2934=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), identifier, null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default); 2938=> SyntaxFactory.EnumDeclaration(default, default(SyntaxTokenList), SyntaxFactory.Token(SyntaxKind.EnumKeyword), SyntaxFactory.Identifier(identifier), null, SyntaxFactory.Token(SyntaxKind.OpenBraceToken), default, SyntaxFactory.Token(SyntaxKind.CloseBraceToken), default);
Syntax\SyntaxReplacer.cs (2)
468public override SyntaxTokenList VisitList(SyntaxTokenList list)
Syntax\TypeDeclarationSyntax.cs (3)
30public new TypeDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) 90default(SyntaxTokenList), 110SyntaxTokenList modifiers,
Microsoft.CodeAnalysis.CSharp.CodeStyle (10)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
15public static SyntaxTokenList GenerateParameterModifiers(this ArgumentSyntax argument)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
737public static SyntaxTokenList GetModifiers(this SyntaxNode? member) 749public static SyntaxNode? WithModifiers(this SyntaxNode? member, SyntaxTokenList modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
98var modifierTokens = GetModifierTokens(declaration); 103public static void GetAccessibilityAndModifiers(SyntaxTokenList modifierList, out Accessibility accessibility, out DeclarationModifiers modifiers, out bool isDefault) 308public static SyntaxTokenList GetModifierTokens(SyntaxNode declaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
43protected override SyntaxTokenList GetTextTokens(XmlTextAttributeSyntax xmlTextAttribute) 46protected override SyntaxTokenList GetTextTokens(XmlTextSyntax xmlText)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1375public SyntaxTokenList GetModifiers(SyntaxNode? node) 1379public SyntaxNode? WithModifiers(SyntaxNode? node, SyntaxTokenList modifiers)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (41)
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
43protected override SyntaxTokenList GetTextTokens(XmlTextSyntax xmlText)
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (1)
53var orderedModifiers = new SyntaxTokenList(
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
270static TypeSyntax? TryGetReturnType(TypeSyntax returnType, SyntaxTokenList modifiers, bool onYield)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (5)
14var newModifiers = RemoveAsyncModifier(method.Modifiers, ref returnType); 20var newModifiers = RemoveAsyncModifier(localFunction.Modifiers, ref returnType); 33private static SyntaxTokenList RemoveAsyncModifier(SyntaxTokenList modifiers, ref TypeSyntax newReturnType) 36SyntaxTokenList newModifiers;
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
50var tokens = structure.Tokens;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
204var modifiers = new SyntaxTokenList();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
117private static SyntaxTokenList GenerateModifiers(IMethodSymbol constructor, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
103private static SyntaxTokenList GenerateModifiers(CodeGenerationDestination destination)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
119var tokens = syntax.Tokens; 121var updatedTokens = TokenList(tokens.Select(ReplaceUnterminatedConstruct));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (4)
716private static TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, Func<SyntaxTokenList, SyntaxTokenList> computeNewModifiersList) 736private static SyntaxTokenList UpdateDeclarationAccessibility(SyntaxTokenList modifiersList, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (12)
301private static bool ContainsToken(SyntaxTokenList list, SyntaxKind kind) 314private static int GetAccessibilityPrecedence(SyntaxTokenList modifiers, SyntaxNode? parent) 362private static bool BothHaveModifier(SyntaxTokenList x, SyntaxTokenList y, SyntaxKind modifierKind, out int comparisonResult) 377private static bool EqualStaticness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 380private static bool EqualConstness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 383private static bool EqualReadOnlyness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 386private static bool EqualAccessibility(SyntaxNode x, SyntaxTokenList xModifiers, SyntaxNode y, SyntaxTokenList yModifiers, out int comparisonResult)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
192private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
122private static SyntaxTokenList GenerateModifiers(IFieldSymbol field, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
254private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
266private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
109private static SyntaxTokenList GenerateModifiers(IMethodSymbol method, CodeGenerationDestination destination, bool hasNoBody)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (2)
76private static SyntaxTokenList GenerateModifiers( 79var list = CSharpSyntaxGeneratorInternal.GetParameterModifiers(parameter.RefKind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
325private static SyntaxTokenList GenerateAccessorModifiers( 345private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenListExtensions.cs (1)
12public static IEnumerable<SyntaxToken> SkipKinds(this SyntaxTokenList tokenList, params SyntaxKind[] kinds)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
135internal static SyntaxTokenList GetParameterModifiers(RefKind refKind, bool forFunctionPointerReturnParameter = false)
Microsoft.CodeAnalysis.CSharp.Features (38)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (9)
104_ => default(SyntaxTokenList), 126_ => default(SyntaxTokenList), 222Func<TSyntaxNode, SyntaxTokenList?> modifierGetter, 271Func<TSyntaxNode, SyntaxTokenList> modifierGetter, 282Func<TSyntaxNode, SyntaxTokenList> modifierGetter, 299var modifiers = modifierGetter(target); 393? default(SyntaxTokenList) 544private static DeclarationModifiers GetDeclarationModifiers(SyntaxTokenList modifiers) 590private static Accessibility? GetAccessibility(SyntaxTokenList modifiers)
ConvertPrimaryToRegularConstructor\ConvertPrimaryToRegularConstructorCodeRefactoringProvider_DocumentationComments.cs (1)
83var tokens = xmlText.TextTokens;
DocumentationComments\CSharpDocumentationCommentSnippetService.cs (2)
277var textTokens = xmlText.TextTokens; 306var tokenList = xmlText.TextTokens;
EditAndContinue\BreakpointSpans.cs (4)
121private static TextSpan CreateSpan(SyntaxTokenList startOpt, SyntaxNodeOrToken startFallbackOpt, SyntaxNodeOrToken endOpt) 783SyntaxTokenList modifiersOpt, 829SyntaxTokenList modifiers, 851internal static IEnumerable<SyntaxToken> GetActiveTokensForVariableDeclarator(VariableDeclaratorSyntax variableDeclarator, SyntaxTokenList modifiers, SyntaxToken semicolon)
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1939private static TextSpan GetDiagnosticSpan(SyntaxTokenList modifiers, SyntaxNodeOrToken start, SyntaxNodeOrToken end)
EditAndContinue\SyntaxComparer.cs (1)
969out SyntaxTokenList modifiers,
EditAndContinue\SyntaxUtilities.cs (1)
170public static SyntaxTokenList? TryGetFieldOrPropertyModifiers(SyntaxNode node)
ExtractMethod\Extensions.cs (1)
120private static bool PartOfConstantInitializerExpression<T>(this SyntaxNode node, Func<T, SyntaxTokenList> modifiersGetter) where T : SyntaxNode
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
83private static bool TryAddAsyncModifier(SyntaxTokenList modifiers, List<TextSpan> spans)
IntroduceVariable\CSharpIntroduceVariableService_IntroduceField.cs (1)
185private static SyntaxTokenList MakeFieldModifiers(bool isConstant, bool inScript)
Organizing\Organizers\ModifiersOrganizer.cs (2)
17public static SyntaxTokenList Organize(SyntaxTokenList modifiers)
Snippets\AbstractCSharpAutoPropertySnippetProvider.cs (2)
56SyntaxTokenList modifiers = default; 61modifiers = SyntaxTokenList.Create(PublicKeyword);
src\Analyzers\CSharp\CodeFixes\DocumentationComments\CSharpRemoveDocCommentNodeCodeFixProvider.cs (1)
43protected override SyntaxTokenList GetTextTokens(XmlTextSyntax xmlText)
src\Analyzers\CSharp\CodeFixes\HideBase\HideBaseCodeFixProvider.AddNewKeywordAction.cs (3)
44var modifiers = syntaxFacts.GetModifiers(node); 45var newModifiers = modifiers.Add(NewKeyword); 53var orderedModifiers = new SyntaxTokenList(
src\Analyzers\CSharp\CodeFixes\Nullable\CSharpDeclareAsNullableCodeFixProvider.cs (1)
270static TypeSyntax? TryGetReturnType(TypeSyntax returnType, SyntaxTokenList modifiers, bool onYield)
src\Analyzers\CSharp\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.cs (5)
14var newModifiers = RemoveAsyncModifier(method.Modifiers, ref returnType); 20var newModifiers = RemoveAsyncModifier(localFunction.Modifiers, ref returnType); 33private static SyntaxTokenList RemoveAsyncModifier(SyntaxTokenList modifiers, ref TypeSyntax newReturnType) 36SyntaxTokenList newModifiers;
src\Analyzers\CSharp\CodeFixes\TransposeRecordKeyword\CSharpTransposeRecordKeywordCodeFixProvider.cs (1)
50var tokens = structure.Tokens;
src\Analyzers\CSharp\CodeFixes\UseLocalFunction\CSharpUseLocalFunctionCodeFixProvider.cs (1)
204var modifiers = new SyntaxTokenList();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (20)
Syntax\SeparatedSyntaxListTests.cs (4)
53var addList = list.Insert(0, SyntaxFactory.ParseExpression("x")); 56var insertBefore = addList.Insert(0, SyntaxFactory.ParseExpression("y")); 59var insertAfter = addList.Insert(1, SyntaxFactory.ParseExpression("y")); 62var insertBetween = insertAfter.InsertRange(1, new[] { SyntaxFactory.ParseExpression("a"), SyntaxFactory.ParseExpression("b"), SyntaxFactory.ParseExpression("c") });
Syntax\SyntaxNodeTests.cs (2)
3443var newModifiers = method.Modifiers.Add(SyntaxFactory.Token(default(SyntaxTriviaList), SyntaxKind.UnsafeKeyword, SyntaxFactory.TriviaList(SyntaxFactory.Space))); 3540var emptyTokenList = SyntaxFactory.TokenList(emptyToken, emptyToken);
Syntax\SyntaxTokenListTests.cs (14)
23EqualityTesting.AssertEqual(default(SyntaxTokenList), default(SyntaxTokenList)); 39EqualityTesting.AssertEqual(default(SyntaxTokenList).Reverse(), default(SyntaxTokenList).Reverse()); 53Assert.Throws<NotSupportedException>(() => default(SyntaxTokenList.Enumerator).GetHashCode()); 54Assert.Throws<NotSupportedException>(() => default(SyntaxTokenList.Enumerator).Equals(default(SyntaxTokenList.Enumerator))); 55Assert.Throws<NotSupportedException>(() => default(SyntaxTokenList.Reversed.Enumerator).GetHashCode()); 56Assert.Throws<NotSupportedException>(() => default(SyntaxTokenList.Reversed.Enumerator).Equals(default(SyntaxTokenList.Reversed.Enumerator))); 198DoTestAddInsertRemoveReplaceOnEmptyList(default(SyntaxTokenList)); 201private void DoTestAddInsertRemoveReplaceOnEmptyList(SyntaxTokenList list) 208var newList = list.Add(tokenD); 244var list = SyntaxFactory.TokenList(
Microsoft.CodeAnalysis.CSharp.Workspaces (59)
Classification\Worker.cs (1)
266var tokens = skippedTokens.Tokens;
Classification\Worker_DocumentationComments.cs (1)
139private void ClassifyXmlTextTokens(SyntaxTokenList textTokens)
CodeGeneration\CSharpSyntaxGenerator.cs (15)
193var modifiers = CSharpSyntaxGeneratorInternal.GetParameterModifiers(refKind); 279var modifierList = AsModifierList(accessibility, modifiers, SyntaxKind.OperatorDeclaration); 715var modifierList = AsModifierList(accessibility, modifiers, kind); 762var modifierList = AsModifierList(accessibility, modifiers, kind); 829var modifiersToken = SyntaxFactory.TokenList(abstractVirtualModifiers); 1401private static void GetAccessibilityAndModifiers(SyntaxTokenList modifierList, out Accessibility accessibility, out DeclarationModifiers modifiers, out bool isDefault) 1414var tokens = GetModifierTokens(d); 1430var newTokens = Merge(tokens, AsModifierList(accessibility, modifiers)); 1608var modifierTokens = GetModifierTokens(declaration); 1613private static SyntaxTokenList GetModifierTokens(SyntaxNode declaration) 1628var tokens = GetModifierTokens(d); 1640var newTokens = Merge(tokens, AsModifierList(accessibility, modifiers)); 1651private static SyntaxNode SetModifierTokens(SyntaxNode declaration, SyntaxTokenList modifiers) 1663private static SyntaxTokenList AsModifierList(Accessibility accessibility, DeclarationModifiers modifiers, SyntaxKind kind) 1666private static SyntaxTokenList AsModifierList(Accessibility accessibility, DeclarationModifiers modifiers)
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
597private static Accessibility GetAccessibility(SyntaxNode container, SyntaxTokenList modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ArgumentSyntaxExtensions.cs (1)
15public static SyntaxTokenList GenerateParameterModifiers(this ArgumentSyntax argument)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxNodeExtensions.cs (2)
737public static SyntaxTokenList GetModifiers(this SyntaxNode? member) 749public static SyntaxNode? WithModifiers(this SyntaxNode? member, SyntaxTokenList modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpAccessibilityFacts.cs (3)
98var modifierTokens = GetModifierTokens(declaration); 103public static void GetAccessibilityAndModifiers(SyntaxTokenList modifierList, out Accessibility accessibility, out DeclarationModifiers modifiers, out bool isDefault) 308public static SyntaxTokenList GetModifierTokens(SyntaxNode declaration)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpDocumentationCommentService.cs (2)
43protected override SyntaxTokenList GetTextTokens(XmlTextAttributeSyntax xmlTextAttribute) 46protected override SyntaxTokenList GetTextTokens(XmlTextSyntax xmlText)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (2)
1375public SyntaxTokenList GetModifiers(SyntaxNode? node) 1379public SyntaxNode? WithModifiers(SyntaxNode? node, SyntaxTokenList modifiers)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConstructorGenerator.cs (1)
117private static SyntaxTokenList GenerateModifiers(IMethodSymbol constructor, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (1)
103private static SyntaxTokenList GenerateModifiers(CodeGenerationDestination destination)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationHelpers.cs (2)
119var tokens = syntax.Tokens; 121var updatedTokens = TokenList(tokens.Select(ReplaceUnterminatedConstruct));
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpCodeGenerationService.cs (4)
716private static TDeclarationNode UpdateDeclarationModifiers<TDeclarationNode>(TDeclarationNode declaration, Func<SyntaxTokenList, SyntaxTokenList> computeNewModifiersList) 736private static SyntaxTokenList UpdateDeclarationAccessibility(SyntaxTokenList modifiersList, Accessibility newAccessibility, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\CSharpDeclarationComparer.cs (12)
301private static bool ContainsToken(SyntaxTokenList list, SyntaxKind kind) 314private static int GetAccessibilityPrecedence(SyntaxTokenList modifiers, SyntaxNode? parent) 362private static bool BothHaveModifier(SyntaxTokenList x, SyntaxTokenList y, SyntaxKind modifierKind, out int comparisonResult) 377private static bool EqualStaticness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 380private static bool EqualConstness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 383private static bool EqualReadOnlyness(SyntaxTokenList x, SyntaxTokenList y, out int comparisonResult) 386private static bool EqualAccessibility(SyntaxNode x, SyntaxTokenList xModifiers, SyntaxNode y, SyntaxTokenList yModifiers, out int comparisonResult)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (1)
192private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\FieldGenerator.cs (1)
122private static SyntaxTokenList GenerateModifiers(IFieldSymbol field, CSharpCodeGenerationContextInfo info)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (1)
254private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
266private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\OperatorGenerator.cs (1)
109private static SyntaxTokenList GenerateModifiers(IMethodSymbol method, CodeGenerationDestination destination, bool hasNoBody)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ParameterGenerator.cs (2)
76private static SyntaxTokenList GenerateModifiers( 79var list = CSharpSyntaxGeneratorInternal.GetParameterModifiers(parameter.RefKind);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\PropertyGenerator.cs (2)
325private static SyntaxTokenList GenerateAccessorModifiers( 345private static SyntaxTokenList GenerateModifiers(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\SyntaxTokenListExtensions.cs (1)
12public static IEnumerable<SyntaxToken> SkipKinds(this SyntaxTokenList tokenList, params SyntaxKind[] kinds)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpSyntaxGeneratorInternal.cs (1)
135internal static SyntaxTokenList GetParameterModifiers(RefKind refKind, bool forFunctionPointerReturnParameter = false)
Microsoft.CodeAnalysis.Features (6)
Shared\Extensions\SyntaxTokenListExtensions.cs (1)
17internal static string GetValueText(this SyntaxTokenList tokens)
src\Analyzers\Core\Analyzers\OrderModifiers\AbstractOrderModifiersDiagnosticAnalyzer.cs (1)
72var modifiers = _syntaxFacts.GetModifiers(memberDeclaration);
src\Analyzers\Core\Analyzers\OrderModifiers\OrderModifiersHelpers.cs (1)
23public static bool IsOrdered(Dictionary<int, int> preferredOrder, SyntaxTokenList modifiers)
src\Analyzers\Core\CodeFixes\DocumentationComments\AbstractRemoveDocCommentNodeCodeFixProvider.cs (1)
30protected abstract SyntaxTokenList GetTextTokens(TXmlTextSyntax xmlText);
src\Analyzers\Core\CodeFixes\OrderModifiers\AbstractOrderModifiersCodeFixProvider.cs (2)
68var modifiers = _syntaxFacts.GetModifiers(currentNode); 69var orderedModifiers = new SyntaxTokenList(
Microsoft.CodeAnalysis.VisualBasic (220)
Binding\Binder_Statements.vb (1)
956Private Sub DecodeLocalModifiersAndReportErrors(syntax As SyntaxTokenList, diagBag As BindingDiagnosticBag)
Binding\Binder_Utils.vb (6)
45Public Shared Function FindFirstKeyword(syntax As SyntaxTokenList, 60Public Sub ReportModifierError(modifiers As SyntaxTokenList, 142Public Function DecodeModifiers(syntax As SyntaxTokenList, 259modifiers As SyntaxTokenList, 1147Public Function ValidateSharedPropertyAndMethodModifiers(modifierList As SyntaxTokenList, 1233Public Function ValidateEventModifiers(modifierList As SyntaxTokenList,
Binding\Binder_XmlLiterals.vb (1)
928Friend Shared Function GetXmlString(tokens As SyntaxTokenList) As String
Declarations\DeclarationTreeBuilder.vb (1)
813Private Shared Function GetModifiers(modifiers As SyntaxTokenList) As DeclarationModifiers
Generated\Syntax.xml.Main.Generated.vb (66)
7501Public Shared Function ModuleStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, moduleKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ModuleStatementSyntax 7535Public Shared Function ModuleStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ModuleStatementSyntax 7586Public Shared Function StructureStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, structureKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As StructureStatementSyntax 7620Public Shared Function StructureStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As StructureStatementSyntax 7671Public Shared Function InterfaceStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, interfaceKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As InterfaceStatementSyntax 7705Public Shared Function InterfaceStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As InterfaceStatementSyntax 7756Public Shared Function ClassStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, classKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ClassStatementSyntax 7790Public Shared Function ClassStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ClassStatementSyntax 7841Public Shared Function EnumStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, enumKeyword As SyntaxToken, identifier As SyntaxToken, underlyingType As AsClauseSyntax) As EnumStatementSyntax 7875Public Shared Function EnumStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, underlyingType As AsClauseSyntax) As EnumStatementSyntax 9228Public Shared Function SubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 9282Public Shared Function SubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 9356Public Shared Function FunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 9409Public Shared Function FunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 9487Public Shared Function MethodStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 9580Public Shared Function SubNewStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subKeyword As SyntaxToken, newKeyword As SyntaxToken, parameterList As ParameterListSyntax) As SubNewStatementSyntax 9614Public Shared Function SubNewStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As SubNewStatementSyntax 9675Public Shared Function DeclareSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 9749Public Shared Function DeclareSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 9828Public Shared Function DeclareFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 9901Public Shared Function DeclareFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 9984Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 10075Public Shared Function DeclareStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 10156Public Shared Function DelegateSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10205Public Shared Function DelegateSubStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10266Public Shared Function DelegateFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10314Public Shared Function DelegateFunctionStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10380Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10447Public Shared Function DelegateStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 10526Public Shared Function EventStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, customKeyword As SyntaxToken, eventKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, implementsClause As ImplementsClauseSyntax) As EventStatementSyntax 10571Public Shared Function EventStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, implementsClause As ImplementsClauseSyntax) As EventStatementSyntax 10632Public Shared Function OperatorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, operatorKeyword As SyntaxToken, operatorToken As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As OperatorStatementSyntax 10697Public Shared Function OperatorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, operatorToken As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As OperatorStatementSyntax 10754Public Shared Function PropertyStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, propertyKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax 10804Public Shared Function PropertyStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax 10861Public Shared Function GetAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 10895Public Shared Function GetAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As AccessorStatementSyntax 10935Public Shared Function SetAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 10965Public Shared Function SetAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11005Public Shared Function AddHandlerAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11035Public Shared Function AddHandlerAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11075Public Shared Function RemoveHandlerAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11105Public Shared Function RemoveHandlerAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11145Public Shared Function RaiseEventAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11175Public Shared Function RaiseEventAccessorStatement(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11221Public Shared Function AccessorStatement(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 11534Public Shared Function IncompleteMember(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, missingIdentifier As SyntaxToken) As IncompleteMemberSyntax 11567Public Shared Function FieldDeclaration(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As FieldDeclarationSyntax 12236Public Shared Function Parameter(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As ModifiedIdentifierSyntax, asClause As SimpleAsClauseSyntax, [default] As EqualsValueSyntax) As ParameterSyntax 12339Public Shared Function ArrayRankSpecifier(openParenToken As SyntaxToken, commaTokens As SyntaxTokenList, closeParenToken As SyntaxToken) As ArrayRankSpecifierSyntax 13041Public Shared Function LocalDeclarationStatement(modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As LocalDeclarationStatementSyntax 36747Public Shared Function SubLambdaHeader(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 36779Public Shared Function SubLambdaHeader(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 36816Public Shared Function FunctionLambdaHeader(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 36847Public Shared Function FunctionLambdaHeader(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 36888Public Shared Function LambdaHeader(ByVal kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 40382Public Shared Function XmlText(textTokens As SyntaxTokenList) As XmlTextSyntax 40391Return SyntaxFactory.XmlText(SyntaxTokenList.Create(SyntaxFactory.Token(SyntaxKind.XmlTextLiteralToken))) 40558Public Shared Function XmlString(startQuoteToken As SyntaxToken, textTokens As SyntaxTokenList, endQuoteToken As SyntaxToken) As XmlStringSyntax 40698Public Shared Function XmlComment(lessThanExclamationMinusMinusToken As SyntaxToken, textTokens As SyntaxTokenList, minusMinusGreaterThanToken As SyntaxToken) As XmlCommentSyntax 40718Return SyntaxFactory.XmlComment(SyntaxFactory.Token(SyntaxKind.LessThanExclamationMinusMinusToken), SyntaxTokenList.Create(SyntaxFactory.Token(SyntaxKind.XmlTextLiteralToken)), SyntaxFactory.Token(SyntaxKind.MinusMinusGreaterThanToken)) 40726Public Shared Function XmlProcessingInstruction(lessThanQuestionToken As SyntaxToken, name As SyntaxToken, textTokens As SyntaxTokenList, questionGreaterThanToken As SyntaxToken) As XmlProcessingInstructionSyntax 40751Return SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.LessThanQuestionToken), SyntaxFactory.Token(SyntaxKind.XmlNameToken), SyntaxTokenList.Create(SyntaxFactory.Token(SyntaxKind.XmlTextLiteralToken)), SyntaxFactory.Token(SyntaxKind.QuestionGreaterThanToken)) 40758Public Shared Function XmlCDataSection(beginCDataToken As SyntaxToken, textTokens As SyntaxTokenList, endCDataToken As SyntaxToken) As XmlCDataSectionSyntax 40777Return SyntaxFactory.XmlCDataSection(SyntaxFactory.Token(SyntaxKind.BeginCDataToken), SyntaxTokenList.Create(SyntaxFactory.Token(SyntaxKind.XmlTextLiteralToken)), SyntaxFactory.Token(SyntaxKind.EndCDataToken)) 41989Public Shared Function SkippedTokensTrivia(tokens As SyntaxTokenList) As SkippedTokensTriviaSyntax
Generated\Syntax.xml.Syntax.Generated.vb (109)
3070Public ReadOnly Property Modifiers As SyntaxTokenList 3076Friend Overridable Function GetModifiersCore() As SyntaxTokenList 3089Public Function WithModifiers(modifiers As SyntaxTokenList) As TypeStatementSyntax 3092Friend MustOverride Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3225Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 3235Friend Overrides Function GetModifiersCore() As SyntaxTokenList 3239Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3248Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As ModuleStatementSyntax 3393Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, moduleKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ModuleStatementSyntax 3477Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 3487Friend Overrides Function GetModifiersCore() As SyntaxTokenList 3491Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3500Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As StructureStatementSyntax 3645Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, structureKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As StructureStatementSyntax 3729Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 3739Friend Overrides Function GetModifiersCore() As SyntaxTokenList 3743Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 3752Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As InterfaceStatementSyntax 3897Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, interfaceKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As InterfaceStatementSyntax 3981Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 3991Friend Overrides Function GetModifiersCore() As SyntaxTokenList 3995Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As TypeStatementSyntax 4004Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As ClassStatementSyntax 4149Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, classKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax) As ClassStatementSyntax 4223Public ReadOnly Property Modifiers As SyntaxTokenList 4238Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As EnumStatementSyntax 4354Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, enumKeyword As SyntaxToken, identifier As SyntaxToken, underlyingType As AsClauseSyntax) As EnumStatementSyntax 6372Public ReadOnly Property Modifiers As SyntaxTokenList 6378Friend Overridable Function GetModifiersCore() As SyntaxTokenList 6391Public Function WithModifiers(modifiers As SyntaxTokenList) As MethodBaseSyntax 6394Friend MustOverride Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 6658Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 6668Friend Overrides Function GetModifiersCore() As SyntaxTokenList 6672Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 6681Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As MethodStatementSyntax 6951Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, handlesClause As HandlesClauseSyntax, implementsClause As ImplementsClauseSyntax) As MethodStatementSyntax 7038Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 7048Friend Overrides Function GetModifiersCore() As SyntaxTokenList 7052Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 7061Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As SubNewStatementSyntax 7198Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subKeyword As SyntaxToken, newKeyword As SyntaxToken, parameterList As ParameterListSyntax) As SubNewStatementSyntax 7287Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 7297Friend Overrides Function GetModifiersCore() As SyntaxTokenList 7301Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 7310Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As DeclareStatementSyntax 7631Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declareKeyword As SyntaxToken, charsetKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, libKeyword As SyntaxToken, libraryName As LiteralExpressionSyntax, aliasKeyword As SyntaxToken, aliasName As LiteralExpressionSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DeclareStatementSyntax 7719Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 7729Friend Overrides Function GetModifiersCore() As SyntaxTokenList 7733Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 7742Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As DelegateStatementSyntax 7966Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, delegateKeyword As SyntaxToken, subOrFunctionKeyword As SyntaxToken, identifier As SyntaxToken, typeParameterList As TypeParameterListSyntax, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As DelegateStatementSyntax 8055Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 8065Friend Overrides Function GetModifiersCore() As SyntaxTokenList 8069Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 8078Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As EventStatementSyntax 8306Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, customKeyword As SyntaxToken, eventKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax, implementsClause As ImplementsClauseSyntax) As EventStatementSyntax 8395Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 8405Friend Overrides Function GetModifiersCore() As SyntaxTokenList 8409Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 8418Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As OperatorStatementSyntax 8584Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, operatorKeyword As SyntaxToken, operatorToken As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As OperatorStatementSyntax 8675Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 8685Friend Overrides Function GetModifiersCore() As SyntaxTokenList 8689Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 8698Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As PropertyStatementSyntax 8927Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, propertyKeyword As SyntaxToken, identifier As SyntaxToken, parameterList As ParameterListSyntax, asClause As AsClauseSyntax, initializer As EqualsValueSyntax, implementsClause As ImplementsClauseSyntax) As PropertyStatementSyntax 9019Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 9029Friend Overrides Function GetModifiersCore() As SyntaxTokenList 9033Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 9042Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As AccessorStatementSyntax 9162Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, accessorKeyword As SyntaxToken, parameterList As ParameterListSyntax) As AccessorStatementSyntax 9936Public ReadOnly Property Modifiers As SyntaxTokenList 9951Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As IncompleteMemberSyntax 10025Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, missingIdentifier As SyntaxToken) As IncompleteMemberSyntax 10101Public ReadOnly Property Modifiers As SyntaxTokenList 10116Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As FieldDeclarationSyntax 10195Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As FieldDeclarationSyntax 11519Public ReadOnly Property Modifiers As SyntaxTokenList 11534Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As ParameterSyntax 11662Public Function Update(attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, identifier As ModifiedIdentifierSyntax, asClause As SimpleAsClauseSyntax, [default] As EqualsValueSyntax) As ParameterSyntax 11907Public ReadOnly Property CommaTokens As SyntaxTokenList 11922Public Shadows Function WithCommaTokens(commaTokens as SyntaxTokenList) As ArrayRankSpecifierSyntax 11984Public Function Update(openParenToken As SyntaxToken, commaTokens As SyntaxTokenList, closeParenToken As SyntaxToken) As ArrayRankSpecifierSyntax 13334Public ReadOnly Property Modifiers As SyntaxTokenList 13349Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As LocalDeclarationStatementSyntax 13421Public Function Update(modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax)) As LocalDeclarationStatementSyntax 26280Public Shadows ReadOnly Property Modifiers As SyntaxTokenList 26290Friend Overrides Function GetModifiersCore() As SyntaxTokenList 26294Friend Overrides Function WithModifiersCore(modifiers As SyntaxTokenList) As MethodBaseSyntax 26303Public Shadows Function WithModifiers(modifiers as SyntaxTokenList) As LambdaHeaderSyntax 26451Public Function Update(kind As SyntaxKind, attributeLists As SyntaxList(of AttributeListSyntax), modifiers As SyntaxTokenList, subOrFunctionKeyword As SyntaxToken, parameterList As ParameterListSyntax, asClause As SimpleAsClauseSyntax) As LambdaHeaderSyntax 31045Public ReadOnly Property TextTokens As SyntaxTokenList 31060Public Shadows Function WithTextTokens(textTokens as SyntaxTokenList) As XmlTextSyntax 31096Public Function Update(textTokens As SyntaxTokenList) As XmlTextSyntax 31724Public ReadOnly Property TextTokens As SyntaxTokenList 31739Public Shadows Function WithTextTokens(textTokens as SyntaxTokenList) As XmlStringSyntax 31798Public Function Update(startQuoteToken As SyntaxToken, textTokens As SyntaxTokenList, endQuoteToken As SyntaxToken) As XmlStringSyntax 32262Public ReadOnly Property TextTokens As SyntaxTokenList 32277Public Shadows Function WithTextTokens(textTokens as SyntaxTokenList) As XmlCommentSyntax 32336Public Function Update(lessThanExclamationMinusMinusToken As SyntaxToken, textTokens As SyntaxTokenList, minusMinusGreaterThanToken As SyntaxToken) As XmlCommentSyntax 32403Public ReadOnly Property TextTokens As SyntaxTokenList 32418Public Shadows Function WithTextTokens(textTokens as SyntaxTokenList) As XmlProcessingInstructionSyntax 32480Public Function Update(lessThanQuestionToken As SyntaxToken, name As SyntaxToken, textTokens As SyntaxTokenList, questionGreaterThanToken As SyntaxToken) As XmlProcessingInstructionSyntax 32532Public ReadOnly Property TextTokens As SyntaxTokenList 32547Public Shadows Function WithTextTokens(textTokens as SyntaxTokenList) As XmlCDataSectionSyntax 32606Public Function Update(beginCDataToken As SyntaxToken, textTokens As SyntaxTokenList, endCDataToken As SyntaxToken) As XmlCDataSectionSyntax 34599Public ReadOnly Property Tokens As SyntaxTokenList 34613Public Shadows Function WithTokens(tokens as SyntaxTokenList) As SkippedTokensTriviaSyntax 34649Public Function Update(tokens As SyntaxTokenList) As SkippedTokensTriviaSyntax
Lowering\Instrumentation\CodeCoverageInstrumenter.vb (1)
546Private Shared Function SkipAttributes(syntax As SyntaxNode, attributes As SyntaxList(Of AttributeListSyntax), modifiers As SyntaxTokenList, keyword As SyntaxToken) As Text.TextSpan
Symbols\Source\SourceEventSymbol.vb (1)
704Friend Shared Function DecodeModifiers(modifiers As SyntaxTokenList,
Symbols\Source\SourceMethodSymbol.vb (3)
143Private Shared Sub ReportPartialMethodErrors(modifiers As SyntaxTokenList, binder As Binder, diagBag As DiagnosticBag) 416Private Shared Function DecodeMethodModifiers(modifiers As SyntaxTokenList, 490Friend Shared Function DecodeConstructorModifiers(modifiers As SyntaxTokenList,
Symbols\Source\SourceNamedTypeSymbol.vb (3)
286Dim modifiers As SyntaxTokenList = Nothing 404ByRef modifiers As SyntaxTokenList, 650Dim modifiers As SyntaxTokenList = Nothing
Symbols\Source\SourcePropertySymbol.vb (1)
1067Private Shared Function DecodeModifiers(modifiers As SyntaxTokenList,
Symbols\Source\UnboundLambdaParameterSymbol.vb (1)
101Private Shared Function GetModifierToken(modifiers As SyntaxTokenList, tokenKind As SyntaxKind) As SyntaxToken
Syntax\SkippedTokensTriviaSyntax.vb (1)
9Private ReadOnly Property ISkippedTokensTriviaSyntax_Tokens As SyntaxTokenList Implements ISkippedTokensTriviaSyntax.Tokens
Syntax\SyntaxEquivalence.vb (2)
32Public Function AreEquivalent(before As SyntaxTokenList, after As SyntaxTokenList) As Boolean
Syntax\SyntaxFactory.vb (7)
438Public Shared Function TypeStatement(ByVal statementKind As SyntaxKind, Optional ByVal attributes As SyntaxList(Of AttributeListSyntax) = Nothing, Optional ByVal modifiers As SyntaxTokenList = Nothing, Optional ByVal keyword As SyntaxToken = Nothing, Optional ByVal identifier As SyntaxToken = Nothing, Optional ByVal typeParameterList As TypeParameterListSyntax = Nothing) As TypeStatementSyntax 514SyntaxTokenList.Create( 541SyntaxTokenList.Create(XmlTextLiteralToken(staticValueString, staticValueString)), 547SyntaxTokenList.Create(XmlTextLiteralToken(instanceValueString, instanceValueString)), 756SyntaxTokenList.Create(XmlTextLiteralToken(keyword, keyword)), 987Public Shared Function AreEquivalent(oldList As SyntaxTokenList, newList As SyntaxTokenList) As Boolean
Syntax\SyntaxNodeFactories.vb (4)
797Public Shared Function TokenList() As SyntaxTokenList 805Public Shared Function TokenList(token As SyntaxToken) As SyntaxTokenList 813Public Shared Function TokenList(ParamArray tokens As SyntaxToken()) As SyntaxTokenList 821Public Shared Function TokenList(tokens As IEnumerable(Of SyntaxToken)) As SyntaxTokenList
Syntax\SyntaxReplacer.vb (2)
360Public Overrides Function VisitList(list As SyntaxTokenList) As SyntaxTokenList
Syntax\VisualBasicSyntaxRewriter.vb (2)
104Public Overridable Function VisitList(list As SyntaxTokenList) As SyntaxTokenList
VisualBasicExtensions.vb (8)
142Public Function IndexOf(list As SyntaxTokenList, kind As SyntaxKind) As Integer 152Public Function Any(list As SyntaxTokenList, kind As SyntaxKind) As Boolean 157Friend Function FirstOrDefault(list As SyntaxTokenList, kind As SyntaxKind) As SyntaxToken 163Friend Function First(list As SyntaxTokenList, kind As SyntaxKind) As SyntaxToken 396Public Function Insert(list As SyntaxTokenList, index As Integer, ParamArray items As SyntaxToken()) As SyntaxTokenList 428Public Function Add(list As SyntaxTokenList, ParamArray items As SyntaxToken()) As SyntaxTokenList
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (9)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (3)
159Public Function GetModifiers(member As SyntaxNode) As SyntaxTokenList 217Public Function WithModifiers(Of TNode As SyntaxNode)(member As TNode, modifiers As SyntaxTokenList) As TNode 221Private Function WithModifiersHelper(member As SyntaxNode, modifiers As SyntaxTokenList) As SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
103Public Shared Function GetModifierTokens(declaration As SyntaxNode) As SyntaxTokenList 185Public Shared Sub GetAccessibilityAndModifiers(modifierTokens As SyntaxTokenList, ByRef accessibility As Accessibility, ByRef modifiers As DeclarationModifiers, ByRef isDefault As Boolean)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicDocumentationCommentService.vb (2)
40Protected Overrides Function GetTextTokens(xmlText As XmlTextSyntax) As SyntaxTokenList 44Protected Overrides Function GetTextTokens(xmlTextAttribute As XmlAttributeSyntax) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
1498Public Function GetModifiers(node As SyntaxNode) As SyntaxTokenList Implements ISyntaxFacts.GetModifiers 1502Public Function WithModifiers(node As SyntaxNode, modifiers As SyntaxTokenList) As SyntaxNode Implements ISyntaxFacts.WithModifiers
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (31)
src\Analyzers\VisualBasic\CodeFixes\DocumentationComments\VisualBasicRemoveDocCommentNodeCodeFixProvider.vb (1)
71Protected Overrides Function GetTextTokens(xmlText As XmlTextSyntax) As SyntaxTokenList
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.vb (1)
14Dim newModifiers As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConstructorGenerator.vb (1)
82Private Function GenerateModifiers(constructor As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (1)
165options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
105options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
143options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
164Private Function GenerateModifiers(namedType As INamedTypeSymbol) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
73Private Shared Function GenerateModifiers(parameter As IParameterSymbol, seenOptional As Boolean) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
159options As CodeGenerationContextInfo) As SyntaxTokenList 177parameterList As ParameterListSyntax) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (10)
587Private Overloads Shared Function UpdateDeclarationModifiers(Of TDeclarationNode As SyntaxNode)(declaration As TDeclarationNode, computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList)) As TDeclarationNode 634Dim computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList) = Function(modifiersList As SyntaxTokenList) 642Dim computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList) = Function(modifiersList As SyntaxTokenList) 649Private Overloads Shared Function UpdateDeclarationAccessibility(modifiersList As SyntaxTokenList, newAccessibility As Accessibility, options As VisualBasicCodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicDeclarationComparer.vb (10)
352Private Shared Function BothHaveModifier(x As SyntaxTokenList, y As SyntaxTokenList, modifierKind As SyntaxKind, ByRef comparisonResult As Integer) As Boolean 365Private Shared Function EqualSharedness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 369Private Shared Function EqualReadOnlyness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 373Private Shared Function EqualConstness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 377Private Shared Function EqualAccessibility(x As SyntaxNode, xModifiers As SyntaxTokenList, y As SyntaxNode, yModifiers As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
364Friend Shared Function GetModifierList(accessibility As Accessibility, modifiers As DeclarationModifiers, declaration As SyntaxNode, kind As DeclarationKind, Optional isDefault As Boolean = False) As SyntaxTokenList
Microsoft.CodeAnalysis.VisualBasic.Features (9)
EditAndContinue\BreakpointSpans.vb (1)
260Private Function TryCreateSpanForVariableDeclaration(modifiers As SyntaxTokenList, declarators As SeparatedSyntaxList(Of VariableDeclaratorSyntax), position As Integer) As TextSpan?
EditAndContinue\SyntaxUtilities.vb (1)
237Public Shared Function GetModifiers(declarationOrBody As SyntaxNode) As SyntaxTokenList
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (3)
342Dim propertyOrFieldModifiers As SyntaxTokenList? = GetFieldOrPropertyModifiers(statement) 411Private Shared Function GetFieldOrPropertyModifiers(node As SyntaxNode) As SyntaxTokenList? 1333Private Overloads Shared Function GetDiagnosticSpan(modifiers As SyntaxTokenList, start As SyntaxNodeOrToken, endNode As SyntaxNodeOrToken) As TextSpan
ExtractMethod\Extensions.vb (1)
97Private Function PartOfConstantInitializerExpression(Of T As SyntaxNode)(node As SyntaxNode, modifiersGetter As Func(Of T, SyntaxTokenList)) As Boolean
IntroduceVariable\VisualBasicIntroduceVariableService_IntroduceField.vb (1)
222inModule As Boolean) As SyntaxTokenList
src\Analyzers\VisualBasic\CodeFixes\DocumentationComments\VisualBasicRemoveDocCommentNodeCodeFixProvider.vb (1)
71Protected Overrides Function GetTextTokens(xmlText As XmlTextSyntax) As SyntaxTokenList
src\Analyzers\VisualBasic\CodeFixes\RemoveAsyncModifier\RemoveAsyncModifierHelpers.vb (1)
14Dim newModifiers As SyntaxTokenList
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (13)
Generated\Syntax.Test.xml.Generated.vb (12)
11826return SyntaxFactory.LocalDeclarationStatement(SyntaxTokenList.Create(SyntaxFactory.Token(SyntaxKind.StaticKeyword)), New SeparatedSyntaxList(Of VariableDeclaratorSyntax)()) 16984return SyntaxFactory.XmlText(SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken())) 17211SyntaxFactory.XmlComment(SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.MinusMinusGreaterThanToken)) 17219SyntaxFactory.XmlComment(SyntaxFactory.Token(SyntaxKind.LessThanExclamationMinusMinusToken), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword)) 17226return SyntaxFactory.XmlComment(SyntaxFactory.Token(SyntaxKind.LessThanExclamationMinusMinusToken), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.MinusMinusGreaterThanToken)) 17232SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword), GenerateRedXmlNameToken(), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.QuestionGreaterThanToken)) 17240SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.LessThanQuestionToken), SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.QuestionGreaterThanToken)) 17248SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.LessThanQuestionToken), GenerateRedXmlNameToken(), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword)) 17255return SyntaxFactory.XmlProcessingInstruction(SyntaxFactory.Token(SyntaxKind.LessThanQuestionToken), GenerateRedXmlNameToken(), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.QuestionGreaterThanToken)) 17261SyntaxFactory.XmlCDataSection(SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.EndCDataToken)) 17269SyntaxFactory.XmlCDataSection(SyntaxFactory.Token(SyntaxKind.BeginCDataToken), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.ExternalSourceKeyword)) 17276return SyntaxFactory.XmlCDataSection(SyntaxFactory.Token(SyntaxKind.BeginCDataToken), SyntaxTokenList.Create(GenerateRedXmlTextLiteralToken()), SyntaxFactory.Token(SyntaxKind.EndCDataToken))
TestSyntaxNodes.vb (1)
287Private Sub VerifyListSpans(list As SyntaxTokenList, expectedFullSpan As TextSpan)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (60)
Classification\Worker.DocumentationCommentClassifier.vb (1)
115Private Sub ClassifyXmlTextTokens(textTokens As SyntaxTokenList)
CodeCleanup\AsyncOrIteratorFunctionReturnTypeFixer.vb (1)
52Private Function RewriteFunctionStatement(modifiers As SyntaxTokenList,
CodeCleanup\Providers\NormalizeModifiersOrOperatorsCodeCleanupProvider.vb (9)
392Private Shared Function ReorderModifiers(modifiers As SyntaxTokenList) As SyntaxTokenList 438Private Function NormalizeModifiers(Of T As SyntaxNode)(originalNode As T, node As SyntaxNode, modifiersGetter As Func(Of T, SyntaxTokenList), withModifiers As Func(Of T, SyntaxTokenList, T)) As T 445Private Function NormalizeModifiers(Of T As SyntaxNode)(originalNode As T, node As T, modifiersGetter As Func(Of T, SyntaxTokenList), withModifiers As Func(Of T, SyntaxTokenList, T)) As T 485Private Shared Function RemoveDimKeyword(Of T As SyntaxNode)(node As T, modifiersGetter As Func(Of T, SyntaxTokenList)) As T 492Private Shared Function RemoveModifierKeyword(Of T As SyntaxNode)(node As T, modifiersGetter As Func(Of T, SyntaxTokenList), modifierKind As SyntaxKind) As T 525Private Shared Function AreModifiersInRightOrder(modifiers As SyntaxTokenList) As Boolean
CodeGeneration\VisualBasicSyntaxGenerator.vb (10)
733Dim modifierList As SyntaxTokenList = GetModifierList(accessibility, modifiers And VisualBasicSyntaxGeneratorInternal.s_methodModifiers, declaration:=Nothing, DeclarationKind.Operator) 839Private Shared Function GetParameterModifiers(refKind As RefKind, initializer As SyntaxNode) As SyntaxTokenList 840Dim tokens As SyntaxTokenList = Nothing 1169Private Shared Function GetIsDefault(modifierList As SyntaxTokenList) As Boolean 1179Private Function WithIsDefault(modifierList As SyntaxTokenList, isDefault As Boolean, declaration As SyntaxNode) As SyntaxTokenList 2413Private Shared Sub GetAccessibilityAndModifiers(modifierTokens As SyntaxTokenList, ByRef accessibility As Accessibility, ByRef modifiers As DeclarationModifiers, ByRef isDefault As Boolean) 2417Private Shared Function GetModifierTokens(declaration As SyntaxNode) As SyntaxTokenList 2441Private Shared Function WithModifierTokens(declaration As SyntaxNode, tokens As SyntaxTokenList) As SyntaxNode 2551Friend Shared Function GetModifierList(accessibility As Accessibility, modifiers As DeclarationModifiers, declaration As SyntaxNode, kind As DeclarationKind, Optional isDefault As Boolean = False) As SyntaxTokenList
FindSymbols\VisualBasicDeclaredSymbolInfoFactoryService.vb (1)
405Private Shared Function GetAccessibility(container As SyntaxNode, node As StatementSyntax, modifiers As SyntaxTokenList) As Accessibility
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\StatementSyntaxExtensions.vb (3)
159Public Function GetModifiers(member As SyntaxNode) As SyntaxTokenList 217Public Function WithModifiers(Of TNode As SyntaxNode)(member As TNode, modifiers As SyntaxTokenList) As TNode 221Private Function WithModifiersHelper(member As SyntaxNode, modifiers As SyntaxTokenList) As SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicAccessibilityFacts.vb (2)
103Public Shared Function GetModifierTokens(declaration As SyntaxNode) As SyntaxTokenList 185Public Shared Sub GetAccessibilityAndModifiers(modifierTokens As SyntaxTokenList, ByRef accessibility As Accessibility, ByRef modifiers As DeclarationModifiers, ByRef isDefault As Boolean)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicDocumentationCommentService.vb (2)
40Protected Overrides Function GetTextTokens(xmlText As XmlTextSyntax) As SyntaxTokenList 44Protected Overrides Function GetTextTokens(xmlTextAttribute As XmlAttributeSyntax) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Services\SyntaxFacts\VisualBasicSyntaxFacts.vb (2)
1498Public Function GetModifiers(node As SyntaxNode) As SyntaxTokenList Implements ISyntaxFacts.GetModifiers 1502Public Function WithModifiers(node As SyntaxNode, modifiers As SyntaxTokenList) As SyntaxNode Implements ISyntaxFacts.WithModifiers
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ConstructorGenerator.vb (1)
82Private Function GenerateModifiers(constructor As IMethodSymbol, destination As CodeGenerationDestination, options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\EventGenerator.vb (1)
165options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\FieldGenerator.vb (1)
105options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\MethodGenerator.vb (1)
143options As CodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
164Private Function GenerateModifiers(namedType As INamedTypeSymbol) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\ParameterGenerator.vb (1)
73Private Shared Function GenerateModifiers(parameter As IParameterSymbol, seenOptional As Boolean) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\PropertyGenerator.vb (2)
159options As CodeGenerationContextInfo) As SyntaxTokenList 177parameterList As ParameterListSyntax) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicCodeGenerationService.vb (10)
587Private Overloads Shared Function UpdateDeclarationModifiers(Of TDeclarationNode As SyntaxNode)(declaration As TDeclarationNode, computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList)) As TDeclarationNode 634Dim computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList) = Function(modifiersList As SyntaxTokenList) 642Dim computeNewModifiersList As Func(Of SyntaxTokenList, SyntaxTokenList) = Function(modifiersList As SyntaxTokenList) 649Private Overloads Shared Function UpdateDeclarationAccessibility(modifiersList As SyntaxTokenList, newAccessibility As Accessibility, options As VisualBasicCodeGenerationContextInfo) As SyntaxTokenList
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\VisualBasicDeclarationComparer.vb (10)
352Private Shared Function BothHaveModifier(x As SyntaxTokenList, y As SyntaxTokenList, modifierKind As SyntaxKind, ByRef comparisonResult As Integer) As Boolean 365Private Shared Function EqualSharedness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 369Private Shared Function EqualReadOnlyness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 373Private Shared Function EqualConstness(x As SyntaxTokenList, y As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean 377Private Shared Function EqualAccessibility(x As SyntaxNode, xModifiers As SyntaxTokenList, y As SyntaxNode, yModifiers As SyntaxTokenList, ByRef comparisonResult As Integer) As Boolean
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicSyntaxGeneratorInternal.vb (1)
364Friend Shared Function GetModifierList(accessibility As Accessibility, modifiers As DeclarationModifiers, declaration As SyntaxNode, kind As DeclarationKind, Optional isDefault As Boolean = False) As SyntaxTokenList
Microsoft.CodeAnalysis.Workspaces (12)
Editing\SyntaxGenerator.cs (4)
1441internal static SyntaxTokenList Merge(SyntaxTokenList original, SyntaxTokenList newList) 1450private static bool Any(SyntaxTokenList original, int rawKind)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\AbstractDocumentationCommentService.cs (4)
116var textTokens = GetTextTokens(xmlText); 158protected abstract SyntaxTokenList GetTextTokens(TXmlTextSyntax xmlText); 159protected abstract SyntaxTokenList GetTextTokens(TXmlTextAttributeSyntax xmlTextAttribute); 162private static void AppendTextTokens(StringBuilder sb, SyntaxTokenList textTokens)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SyntaxFacts\ISyntaxFacts.cs (2)
470SyntaxTokenList GetModifiers(SyntaxNode? node); 474SyntaxNode? WithModifiers(SyntaxNode? node, SyntaxTokenList modifiers);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\AbstractCodeGenerationService.cs (2)
548protected static SyntaxTokenList GetUpdatedDeclarationAccessibilityModifiers( 549ArrayBuilder<SyntaxToken> newModifierTokens, SyntaxTokenList modifiersList,
Microsoft.DotNet.GenFacades (1)
TypeParser.cs (1)
169private static bool HasPublicModifier(SyntaxTokenList modifiers)
Microsoft.Interop.JavaScript.JSImportGenerator (2)
JSImportGenerator.cs (2)
96private static SyntaxTokenList StripTriviaFromModifiers(SyntaxTokenList tokenList)
Microsoft.Interop.LibraryImportGenerator (3)
LibraryImportGenerator.cs (3)
163private static SyntaxTokenList StripTriviaFromModifiers(SyntaxTokenList tokenList) 414SyntaxTokenList modifiers = StripTriviaFromModifiers(userDeclaredMethod.Modifiers);
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
DownlevelLibraryImportGenerator.cs (3)
105private static SyntaxTokenList StripTriviaFromModifiers(SyntaxTokenList tokenList) 293SyntaxTokenList modifiers = StripTriviaFromModifiers(userDeclaredMethod.Modifiers);
Microsoft.Interop.SourceGeneration (10)
ContainingSyntaxContext.cs (2)
15public readonly struct ContainingSyntax(SyntaxTokenList modifiers, SyntaxKind typeKind, SyntaxToken identifier, TypeParameterListSyntax? typeParameters) : IEquatable<ContainingSyntax> 17public SyntaxTokenList Modifiers { get; init; } = modifiers.StripTriviaFromTokens();
Marshalling\MarshallerHelpers.cs (2)
410public static SyntaxTokenList GetManagedParameterModifiers(TypePositionInfo typeInfo) 412SyntaxTokenList tokens = TokenList();
SyntaxExtensions.cs (6)
74public static SyntaxTokenList StripTriviaFromTokens(this SyntaxTokenList tokenList) 84public static SyntaxTokenList StripAccessibilityModifiers(this SyntaxTokenList tokenList) 98public static SyntaxTokenList AddToModifiers(this SyntaxTokenList modifiers, SyntaxKind modifierToAdd)
Microsoft.ML.InternalCodeAnalyzer (1)
NameAnalyzer.cs (1)
129private static bool ModifierContainsExtern(SyntaxTokenList modifiers)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (2)
1871var modifiers = parameter.Modifiers; 1911SyntaxTokenList newModifiers;
Microsoft.VisualStudio.LanguageServices.VisualBasic (3)
Help\VisualBasicHelpContextService.Visitor.vb (3)
768Private Function SelectModifier(list As SyntaxTokenList) As Boolean 786Private Function SelectCombinationModifier(token As SyntaxToken, list As SyntaxTokenList) As Boolean 798Private Function SelectCombinationModifier(token As SyntaxToken, list As SyntaxTokenList, kind1 As SyntaxKind, kind2 As SyntaxKind, helpKeyword As String) As Boolean