Parser\LanguageParser.cs (94)
238SyntaxList<AttributeListSyntax> attributeLists,
249SyntaxList<AttributeListSyntax> attributeLists,
1067private SyntaxList<AttributeListSyntax> ParseAttributeDeclarations(bool inExpressionContext)
1686private MemberDeclarationSyntax ParseTypeDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
1719private TypeDeclarationSyntax ParseClassOrStructOrInterfaceDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
1885static TypeDeclarationSyntax constructTypeDeclaration(ContextAwareSyntax syntaxFactory, SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, SyntaxToken keyword, SyntaxToken? recordModifier,
1889var modifiersList = (SyntaxList<SyntaxToken>)modifiers.ToList();
1890var membersList = (SyntaxList<MemberDeclarationSyntax>)members;
1891var constraintsList = (SyntaxList<TypeParameterConstraintClauseSyntax>)constraints;
2489var attributes = this.ParseStatementAttributeDeclarations();
2809bool tryParseLocalDeclarationStatement<DeclarationSyntax>(SyntaxList<AttributeListSyntax> attributes, out MemberDeclarationSyntax result) where DeclarationSyntax : StatementSyntax
2829bool tryParseStatement(SyntaxList<AttributeListSyntax> attributes, ref ResetPoint afterAttributesPoint, out MemberDeclarationSyntax result)
2860bool tryParseLocalDeclarationStatementFromStartPoint<DeclarationSyntax>(SyntaxList<AttributeListSyntax> attributes, ref ResetPoint startPoint, out MemberDeclarationSyntax result) where DeclarationSyntax : StatementSyntax
2917private bool IsMisplacedModifier(SyntaxListBuilder modifiers, SyntaxList<AttributeListSyntax> attributes, TypeSyntax type, out MemberDeclarationSyntax result)
2939private bool IsNoneOrIncompleteMember(SyntaxKind parentKind, SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type,
3003private bool TryParseIndexerOrPropertyDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, TypeSyntax type,
3063var attributes = this.ParseAttributeDeclarations(inExpressionContext: false);
3304SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
3358private DestructorDeclarationSyntax ParseDestructorDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
3466SyntaxList<AttributeListSyntax> attributes,
3549private ConversionOperatorDeclarationSyntax TryParseConversionOperatorDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
3791SyntaxList<AttributeListSyntax> attributes,
3961SyntaxList<AttributeListSyntax> attributes,
4021SyntaxList<AttributeListSyntax> attributes,
4117var accessors = default(SyntaxList<AccessorDeclarationSyntax>);
4399var accAttrs = this.ParseAttributeDeclarations(inExpressionContext: false);
4686var attributes = this.ParseAttributeDeclarations(inExpressionContext: false);
4782SyntaxList<AttributeListSyntax> attributes,
4800SyntaxList<AttributeListSyntax> attributes,
4815SyntaxList<AttributeListSyntax> attributes,
4842default(SyntaxList<AccessorDeclarationSyntax>),
4918SyntaxList<AttributeListSyntax> attributes,
4940SyntaxList<AttributeListSyntax> attributes,
5018SyntaxList<AttributeListSyntax> attributes,
5019SyntaxList<SyntaxToken> mods,
5205SyntaxList<AttributeListSyntax> attributes,
5206SyntaxList<SyntaxToken> mods,
5479private FieldDeclarationSyntax ParseConstantFieldDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers, SyntaxKind parentKind)
5493private DelegateDeclarationSyntax ParseDelegateDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
5526private EnumDeclarationSyntax ParseEnumDeclaration(SyntaxList<AttributeListSyntax> attributes, SyntaxListBuilder modifiers)
5617var memberAttrs = this.ParseAttributeDeclarations(inExpressionContext: false);
5834default(SyntaxList<AttributeListSyntax>),
5839var attrs = default(SyntaxList<AttributeListSyntax>);
6356var attrs = default(SyntaxList<AttributeListSyntax>);
7876private SyntaxList<AttributeListSyntax> ParseStatementAttributeDeclarations()
7955var attributes = isCollectionExpression ? default : ParseAttributeDeclarations(inExpressionContext: true);
7964private StatementSyntax ParseStatementCore(SyntaxList<AttributeListSyntax> attributes, bool isGlobal)
8046private StatementSyntax TryReuseStatement(SyntaxList<AttributeListSyntax> attributes, bool isGlobal)
8059private StatementSyntax ParseStatementCoreRest(SyntaxList<AttributeListSyntax> attributes, bool isGlobal, ref ResetPoint resetPointBeforeStatement)
8110private StatementSyntax TryParseStatementStartingWithIdentifier(SyntaxList<AttributeListSyntax> attributes, bool isGlobal)
8145private StatementSyntax ParseStatementStartingWithUsing(SyntaxList<AttributeListSyntax> attributes)
8149private StatementSyntax TryParseStatementStartingWithUnsafe(SyntaxList<AttributeListSyntax> attributes)
8664private BlockSyntax ParseMethodOrAccessorBodyBlock(SyntaxList<AttributeListSyntax> attributes, bool isAccessorBody)
8704private BlockSyntax ParseBlock(SyntaxList<AttributeListSyntax> attributes)
8852private FixedStatementSyntax ParseFixedStatement(SyntaxList<AttributeListSyntax> attributes)
8918private BreakStatementSyntax ParseBreakStatement(SyntaxList<AttributeListSyntax> attributes)
8926private ContinueStatementSyntax ParseContinueStatement(SyntaxList<AttributeListSyntax> attributes)
8934private TryStatementSyntax ParseTryStatement(SyntaxList<AttributeListSyntax> attributes)
9093private StatementSyntax ParseCheckedStatement(SyntaxList<AttributeListSyntax> attributes)
9110private DoStatementSyntax ParseDoStatement(SyntaxList<AttributeListSyntax> attributes)
9139private StatementSyntax ParseForOrForEachStatement(SyntaxList<AttributeListSyntax> attributes)
9172private ForStatementSyntax ParseForStatement(SyntaxList<AttributeListSyntax> attributes)
9315SyntaxList<AttributeListSyntax> attributes, SyntaxToken awaitTokenOpt)
9533private GotoStatementSyntax ParseGotoStatement(SyntaxList<AttributeListSyntax> attributes)
9566private IfStatementSyntax ParseIfStatement(SyntaxList<AttributeListSyntax> attributes)
9631private IfStatementSyntax ParseMisplacedElse(SyntaxList<AttributeListSyntax> attributes)
9654private LockStatementSyntax ParseLockStatement(SyntaxList<AttributeListSyntax> attributes)
9666private ReturnStatementSyntax ParseReturnStatement(SyntaxList<AttributeListSyntax> attributes)
9676private YieldStatementSyntax ParseYieldStatement(SyntaxList<AttributeListSyntax> attributes)
9713private SwitchStatementSyntax ParseSwitchStatement(SyntaxList<AttributeListSyntax> attributes)
9861private ThrowStatementSyntax ParseThrowStatement(SyntaxList<AttributeListSyntax> attributes)
9871private UnsafeStatementSyntax ParseUnsafeStatement(SyntaxList<AttributeListSyntax> attributes)
9880private UsingStatementSyntax ParseUsingStatement(SyntaxList<AttributeListSyntax> attributes, SyntaxToken awaitTokenOpt = null)
10007private WhileStatementSyntax ParseWhileStatement(SyntaxList<AttributeListSyntax> attributes)
10019private LabeledStatementSyntax ParseLabeledStatement(SyntaxList<AttributeListSyntax> attributes)
10035private StatementSyntax ParseLocalDeclarationStatement(SyntaxList<AttributeListSyntax> attributes)
10273SyntaxList<AttributeListSyntax> attributes,
10274SyntaxList<SyntaxToken> mods,
10448SyntaxList<AttributeListSyntax> attributes,
10449SyntaxList<SyntaxToken> modifiers,
10565private ExpressionStatementSyntax ParseExpressionStatement(SyntaxList<AttributeListSyntax> attributes)
10570private ExpressionStatementSyntax ParseExpressionStatement(SyntaxList<AttributeListSyntax> attributes, ExpressionSyntax expression)
12560var attributeDeclarations = ParseAttributeDeclarations(inExpressionContext: true);
13203var modifiers = ParseAnonymousFunctionModifiers();
13250private SyntaxList<SyntaxToken> ParseAnonymousFunctionModifiers()
13314var attributes = ParseAttributeDeclarations(inExpressionContext: true);
13329var modifiers = ParseAnonymousFunctionModifiers();
13439var attributes = ParseAttributeDeclarations(inExpressionContext: false);
Syntax\ClassDeclarationSyntax.cs (3)
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\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\InterfaceDeclarationSyntax.cs (3)
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\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\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 (9)
13public RecordDeclarationSyntax Update(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
14TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses,
15SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
27public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
28TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses,
29SyntaxToken openBraceToken, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, SyntaxToken semicolonToken)
35public static RecordDeclarationSyntax RecordDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken keyword, SyntaxToken identifier,
36TypeParameterListSyntax? typeParameterList, ParameterListSyntax? parameterList, BaseListSyntax? baseList, SyntaxList<TypeParameterConstraintClauseSyntax> constraintClauses, SyntaxList<MemberDeclarationSyntax> members)
Syntax\StructDeclarationSyntax.cs (3)
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\SwitchStatementSyntax.cs (2)
11public SwitchStatementSyntax Update(SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
20public static SwitchStatementSyntax SwitchStatement(SyntaxToken switchKeyword, SyntaxToken openParenToken, ExpressionSyntax expression, SyntaxToken closeParenToken, SyntaxToken openBraceToken, SyntaxList<SwitchSectionSyntax> sections, SyntaxToken closeBraceToken)
Syntax\SyntaxFactory.cs (72)
688public static XmlElementSyntax XmlSummaryElement(SyntaxList<XmlNodeSyntax> content)
716public static XmlElementSyntax XmlSeeAlsoElement(Uri linkAddress, SyntaxList<XmlNodeSyntax> linkText)
802public static XmlElementSyntax XmlRemarksElement(SyntaxList<XmlNodeSyntax> content)
820public static XmlElementSyntax XmlReturnsElement(SyntaxList<XmlNodeSyntax> content)
838public static XmlElementSyntax XmlValueElement(SyntaxList<XmlNodeSyntax> content)
858public static XmlElementSyntax XmlExceptionElement(CrefSyntax cref, SyntaxList<XmlNodeSyntax> content)
879public static XmlElementSyntax XmlPermissionElement(CrefSyntax cref, SyntaxList<XmlNodeSyntax> content)
898public static XmlElementSyntax XmlExampleElement(SyntaxList<XmlNodeSyntax> content)
917public static XmlElementSyntax XmlParaElement(SyntaxList<XmlNodeSyntax> content)
941public static XmlElementSyntax XmlParamElement(string parameterName, SyntaxList<XmlNodeSyntax> content)
990public static XmlElementSyntax XmlPlaceholderElement(SyntaxList<XmlNodeSyntax> content)
1009public static XmlElementSyntax XmlElement(string localName, SyntaxList<XmlNodeSyntax> content)
1019public static XmlElementSyntax XmlElement(XmlNameSyntax name, SyntaxList<XmlNodeSyntax> content)
1075public static XmlElementSyntax XmlMultiLineElement(string localName, SyntaxList<XmlNodeSyntax> content)
1085public static XmlElementSyntax XmlMultiLineElement(XmlNameSyntax name, SyntaxList<XmlNodeSyntax> content)
1228public static SyntaxList<TNode> List<TNode>() where TNode : SyntaxNode
1230return default(SyntaxList<TNode>);
1239public static SyntaxList<TNode> SingletonList<TNode>(TNode node) where TNode : SyntaxNode
1249public static SyntaxList<TNode> List<TNode>(IEnumerable<TNode> nodes) where TNode : SyntaxNode
2012public static bool AreEquivalent<TNode>(SyntaxList<TNode> oldList, SyntaxList<TNode> newList, bool topLevel)
2027public static bool AreEquivalent<TNode>(SyntaxList<TNode> oldList, SyntaxList<TNode> newList, Func<SyntaxKind, bool>? ignoreChildNode = null)
2451SyntaxList<AttributeListSyntax> attributeLists,
2470SyntaxList<AttributeListSyntax> attributeLists,
2492SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers,
2515SyntaxList<AttributeListSyntax> attributeLists,
2536SyntaxList<AttributeListSyntax> attributeLists,
2563SyntaxList<AttributeListSyntax> attributeLists,
2586SyntaxList<AttributeListSyntax> attributeLists,
2611SyntaxList<AttributeListSyntax> attributeLists,
2632SyntaxList<AttributeListSyntax> attributeLists,
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)
2696public static EnumMemberDeclarationSyntax EnumMemberDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxToken identifier, EqualsValueClauseSyntax? equalsValue)
2700public static NamespaceDeclarationSyntax NamespaceDeclaration(NameSyntax name, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members)
2704public static NamespaceDeclarationSyntax NamespaceDeclaration(SyntaxToken namespaceKeyword, NameSyntax name, SyntaxToken openBraceToken, SyntaxList<ExternAliasDirectiveSyntax> externs, SyntaxList<UsingDirectiveSyntax> usings, SyntaxList<MemberDeclarationSyntax> members, SyntaxToken closeBraceToken, 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)
2721public static SwitchStatementSyntax SwitchStatement(ExpressionSyntax expression, SyntaxList<SwitchSectionSyntax> sections)
2740return SyntaxFactory.SwitchStatement(expression, default(SyntaxList<SwitchSectionSyntax>));
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)
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)
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)
2929public static EnumDeclarationSyntax EnumDeclaration(SyntaxList<AttributeListSyntax> attributeLists, SyntaxTokenList modifiers, SyntaxToken identifier, BaseListSyntax? baseList, SeparatedSyntaxList<EnumMemberDeclarationSyntax> members)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (11)
908public SyntaxList<SyntaxNode> GetMembersOfTypeDeclaration(SyntaxNode typeDeclaration)
1058private static void AppendConstructors(SyntaxList<MemberDeclarationSyntax> members, List<SyntaxNode> constructors, CancellationToken cancellationToken)
1171public SyntaxList<SyntaxNode> GetContentsOfInterpolatedString(SyntaxNode interpolatedString)
1414public SyntaxList<SyntaxNode> GetAttributeLists(SyntaxNode? node)
1421public SyntaxList<SyntaxNode> GetContentFromDocumentationCommentTriviaSyntax(SyntaxTrivia trivia)
1610public void GetPartsOfCompilationUnit(SyntaxNode node, out SyntaxList<SyntaxNode> imports, out SyntaxList<SyntaxNode> attributeLists, out SyntaxList<SyntaxNode> members)
1649out SyntaxToken stringStartToken, out SyntaxList<SyntaxNode> contents, out SyntaxToken stringEndToken)
1672public void GetPartsOfBaseNamespaceDeclaration(SyntaxNode node, out SyntaxNode name, out SyntaxList<SyntaxNode> imports, out SyntaxList<SyntaxNode> members)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (5)
25SyntaxList<MemberDeclarationSyntax> members,
48SyntaxList<MemberDeclarationSyntax> members,
73var members = Insert(destination.Members, declaration, info, availableIndices,
87var members = Insert(destination.Members, declaration, info, availableIndices,
142private static SyntaxList<AttributeListSyntax> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (6)
39var members = Insert(destination.Members, declaration, info, availableIndices, after: LastMethod);
54var members = Insert(destination.Members, declaration, info, availableIndices, after: LastMethod);
69var members = Insert(destination.Members, methodDeclaration, info, availableIndices, after: LastMethod);
219private static SyntaxList<AttributeListSyntax> GenerateAttributes(
235private static SyntaxList<TypeParameterConstraintClauseSyntax> GenerateConstraintClauses(
243private static SyntaxList<TypeParameterConstraintClauseSyntax> GenerateDefaultConstraints(IMethodSymbol method)
CodeGeneration\CSharpSyntaxGenerator.cs (31)
83(SyntaxList<XmlNodeSyntax>)SyntaxFactory.List(nodes),
96return SyntaxFactory.DocumentationCommentTrivia(documentationCommentTrivia.Kind(), (SyntaxList<XmlNodeSyntax>)SyntaxFactory.List(content), documentationCommentTrivia.EndOfComment);
112private SyntaxList<UsingDirectiveSyntax> AsUsingDirectives(IEnumerable<SyntaxNode> declarations)
129private static SyntaxList<MemberDeclarationSyntax> AsNamespaceMembers(IEnumerable<SyntaxNode> declarations)
278var attributes = default(SyntaxList<AttributeListSyntax>);
456var list = SyntaxFactory.List(accessorDeclarations.Cast<AccessorDeclarationSyntax>());
717var typeMembers = this.AsClassMembers(name, members);
724private SyntaxList<MemberDeclarationSyntax> AsClassMembers(string className, IEnumerable<SyntaxNode>? members)
764var structMembers = this.AsClassMembers(name, members);
794private SyntaxList<MemberDeclarationSyntax> AsInterfaceMembers(IEnumerable<SyntaxNode>? members)
988private static SyntaxList<AttributeListSyntax> AsAttributeLists(IEnumerable<SyntaxNode> attributes)
1032var newAttributes = AsAttributeLists(attributes);
1045var lists = declaration.GetAttributeLists();
1046var newList = lists.AddRange(newAttributes);
1080var lists = d.GetAttributeLists();
1081var newList = lists.AddRange(newAttributes);
1092private static SyntaxList<AttributeListSyntax> AsAssemblyAttributes(IEnumerable<AttributeListSyntax> attributes)
1097private static SyntaxList<AttributeListSyntax> WithRequiredTargetSpecifier(SyntaxList<AttributeListSyntax> attributes, SyntaxNode declaration)
1195internal static SyntaxList<AttributeListSyntax> GetAttributeLists(SyntaxNode declaration)
1206private static SyntaxNode WithAttributeLists(SyntaxNode declaration, SyntaxList<AttributeListSyntax> attributeLists)
1244var usingsToInsert = this.AsUsingDirectives(imports);
1823private static SyntaxList<TypeParameterConstraintClauseSyntax> WithTypeConstraints(
1824SyntaxList<TypeParameterConstraintClauseSyntax> clauses,
2157var newSections = statement.Sections.InsertRange(index, switchSections.Cast<SwitchSectionSyntax>());
3110var statementList = AsStatementList(statements);
3121private static SyntaxList<StatementSyntax> AsStatementList(IEnumerable<SyntaxNode>? nodes)
3461private static SyntaxList<SwitchLabelSyntax> AsSwitchLabels(IEnumerable<SyntaxNode> expressions)
3463var labels = default(SyntaxList<SwitchLabelSyntax>);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (11)
908public SyntaxList<SyntaxNode> GetMembersOfTypeDeclaration(SyntaxNode typeDeclaration)
1058private static void AppendConstructors(SyntaxList<MemberDeclarationSyntax> members, List<SyntaxNode> constructors, CancellationToken cancellationToken)
1171public SyntaxList<SyntaxNode> GetContentsOfInterpolatedString(SyntaxNode interpolatedString)
1414public SyntaxList<SyntaxNode> GetAttributeLists(SyntaxNode? node)
1421public SyntaxList<SyntaxNode> GetContentFromDocumentationCommentTriviaSyntax(SyntaxTrivia trivia)
1610public void GetPartsOfCompilationUnit(SyntaxNode node, out SyntaxList<SyntaxNode> imports, out SyntaxList<SyntaxNode> attributeLists, out SyntaxList<SyntaxNode> members)
1649out SyntaxToken stringStartToken, out SyntaxList<SyntaxNode> contents, out SyntaxToken stringEndToken)
1672public void GetPartsOfBaseNamespaceDeclaration(SyntaxNode node, out SyntaxNode name, out SyntaxList<SyntaxNode> imports, out SyntaxList<SyntaxNode> members)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\EventGenerator.cs (5)
25SyntaxList<MemberDeclarationSyntax> members,
48SyntaxList<MemberDeclarationSyntax> members,
73var members = Insert(destination.Members, declaration, info, availableIndices,
87var members = Insert(destination.Members, declaration, info, availableIndices,
142private static SyntaxList<AttributeListSyntax> GenerateAttributes(
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\MethodGenerator.cs (6)
39var members = Insert(destination.Members, declaration, info, availableIndices, after: LastMethod);
54var members = Insert(destination.Members, declaration, info, availableIndices, after: LastMethod);
69var members = Insert(destination.Members, methodDeclaration, info, availableIndices, after: LastMethod);
219private static SyntaxList<AttributeListSyntax> GenerateAttributes(
235private static SyntaxList<TypeParameterConstraintClauseSyntax> GenerateConstraintClauses(
243private static SyntaxList<TypeParameterConstraintClauseSyntax> GenerateDefaultConstraints(IMethodSymbol method)