400 references to SyntaxFactory
Microsoft.CodeAnalysis.VisualBasic (400)
Parser\ParseConditional.vb (16)
120
Dim statement =
SyntaxFactory
.ElseDirectiveTrivia(hashToken, elseKeyword)
160
statement =
SyntaxFactory
.IfDirectiveTrivia(hashToken, elseKeyword, ifKeyword, expression, thenKeyword)
162
statement =
SyntaxFactory
.ElseIfDirectiveTrivia(hashToken, elseKeyword, ifKeyword, expression, thenKeyword)
181
statement =
SyntaxFactory
.EndIfDirectiveTrivia(hashToken, endKeyword, ifKeyword)
191
statement =
SyntaxFactory
.EndRegionDirectiveTrivia(hashToken, endKeyword, regionKeyword)
197
statement =
SyntaxFactory
.EndExternalSourceDirectiveTrivia(hashToken, endKeyword, externalSourceKeyword)
204
statement =
SyntaxFactory
.BadDirectiveTrivia(hashToken)
219
Dim statement =
SyntaxFactory
.EndIfDirectiveTrivia(hashToken, endKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
250
Dim statement =
SyntaxFactory
.ConstDirectiveTrivia(hashToken, constKeyword, Name, equalsToken, expression)
265
Dim statement =
SyntaxFactory
.RegionDirectiveTrivia(hashToken, regionKeyword, title)
305
Dim statement =
SyntaxFactory
.ExternalSourceDirectiveTrivia(hashToken,
370
Dim statement =
SyntaxFactory
.ExternalChecksumDirectiveTrivia(hashToken,
405
Dim errorCode =
SyntaxFactory
.IdentifierName(ParseIdentifier())
433
statement =
SyntaxFactory
.EnableWarningDirectiveTrivia(
436
statement =
SyntaxFactory
.DisableWarningDirectiveTrivia(
463
Return
SyntaxFactory
.ReferenceDirectiveTrivia(hashToken, referenceKeyword, file)
Parser\ParseExpression.vb (74)
88
expression =
SyntaxFactory
.UnaryMinusExpression(startToken, Operand)
94
expression =
SyntaxFactory
.NotExpression(startToken, Operand)
103
expression =
SyntaxFactory
.UnaryPlusExpression(startToken, Operand)
109
expression =
SyntaxFactory
.AddressOfExpression(startToken, Operand)
164
expression =
SyntaxFactory
.BinaryExpression(GetBinaryOperatorHelper([operator]), expression, [operator], rightOperand)
241
term =
SyntaxFactory
.GlobalName(DirectCast(start, KeywordSyntax))
251
term =
SyntaxFactory
.MyBaseExpression(DirectCast(start, KeywordSyntax))
261
term =
SyntaxFactory
.MyClassExpression(DirectCast(start, KeywordSyntax))
271
term =
SyntaxFactory
.MeExpression(DirectCast(start, KeywordSyntax))
330
term =
SyntaxFactory
.TrueLiteralExpression(CurrentToken)
334
term =
SyntaxFactory
.FalseLiteralExpression(CurrentToken)
338
term =
SyntaxFactory
.NothingLiteralExpression(CurrentToken)
422
term =
SyntaxFactory
.ConditionalAccessExpression(term, qToken, ParsePostFixExpression(RedimOrNewParent, term:=Nothing))
502
term =
SyntaxFactory
.ConditionalAccessExpression(term, qToken, ParsePostFixExpression(RedimOrNewParent, term:=Nothing))
562
Return
SyntaxFactory
.BinaryConditionalExpression(
570
Return
SyntaxFactory
.BinaryConditionalExpression(
578
Return
SyntaxFactory
.BinaryConditionalExpression(
586
Return
SyntaxFactory
.TernaryConditionalExpression(
610
Return
SyntaxFactory
.TernaryConditionalExpression(
624
Return
SyntaxFactory
.BinaryConditionalExpression(
662
Return
SyntaxFactory
.GetTypeExpression([getType], openParen, getTypeTypeName, closeParen)
687
Return
SyntaxFactory
.NameOfExpression([nameOf], openParen, nameOfName, closeParen)
717
access =
SyntaxFactory
.SimpleMemberAccessExpression(expression, access.OperatorToken, access.Name)
746
name =
SyntaxFactory
.XmlPrefixName(DirectCast(CurrentToken, XmlNameTokenSyntax))
753
Dim result =
SyntaxFactory
.GetXmlNamespaceExpression(getXmlNamespaceKeyword, openParen, name, closeParen)
761
Return
SyntaxFactory
.GetXmlNamespaceExpression(getXmlNamespaceKeyword, openParen, Nothing, closeParen)
785
Return
SyntaxFactory
.PredefinedCastExpression(Start, openParen, Operand, closeParen)
803
Return
SyntaxFactory
.AnonymousObjectCreationExpression(NewKeyword, Nothing, objInitializer)
855
Return
SyntaxFactory
.ArrayCreationExpression(
893
Return
SyntaxFactory
.ObjectCreationExpression(NewKeyword, Nothing, Type, Arguments, objInit)
913
Return
SyntaxFactory
.ObjectCreationExpression(NewKeyword, Nothing, Type, Arguments, objInit)
916
Return
SyntaxFactory
.ObjectCreationExpression(NewKeyword, Nothing, Type, Arguments, Nothing)
964
Return
SyntaxFactory
.TypeOfExpression(kind, [typeOf], exp, operatorToken, typeName)
1011
Return
SyntaxFactory
.DictionaryAccessExpression(Term, DotOrBangToken, Name)
1033
Return
SyntaxFactory
.SimpleMemberAccessExpression(Term, DotOrBangToken,
SyntaxFactory
.IdentifierName(missingIdent))
1059
name =
SyntaxFactory
.XmlName(Nothing, DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlNameToken), XmlNameTokenSyntax))
1076
name =
SyntaxFactory
.XmlName(Nothing, DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlNameToken), XmlNameTokenSyntax))
1081
Return
SyntaxFactory
.XmlMemberAccessExpression(SyntaxKind.XmlAttributeAccessExpression, Term, DotOrBangToken, atToken, Nothing, name)
1089
Return
SyntaxFactory
.XmlMemberAccessExpression(SyntaxKind.XmlElementAccessExpression, Term, DotOrBangToken, Nothing, Nothing, name)
1107
Return
SyntaxFactory
.XmlMemberAccessExpression(SyntaxKind.XmlDescendantAccessExpression, Term, DotOrBangToken, secondDotToken, thirdDotToken, name)
1112
Return
SyntaxFactory
.SimpleMemberAccessExpression(Term, DotOrBangToken, name)
1126
result =
SyntaxFactory
.XmlMemberAccessExpression(SyntaxKind.XmlAttributeAccessExpression,
1131
result =
SyntaxFactory
.SimpleMemberAccessExpression(Term, DotOrBangToken, ReportSyntaxError(InternalSyntaxFactory.IdentifierName(InternalSyntaxFactory.MissingIdentifier), ERRID.ERR_ExpectedIdentifier))
1198
Dim result =
SyntaxFactory
.XmlBracketedName(lessToken, DirectCast(name, XmlNameSyntax), greaterToken)
1217
Return
SyntaxFactory
.XmlBracketedName(lessToken, name, greaterToken)
1221
Return ReportSyntaxError(
SyntaxFactory
.XmlName(Nothing,
SyntaxFactory
.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing)), ERRID.ERR_ExpectedXmlName)
1241
Dim nameColonEquals =
SyntaxFactory
.NameColonEquals(argumentName, colonEquals)
1242
Dim firstArgument =
SyntaxFactory
.SimpleArgument(nameColonEquals, ParseExpressionCore())
1250
Dim firstArgument =
SyntaxFactory
.SimpleArgument(nameColonEquals:=Nothing, expression:=operand)
1258
Return
SyntaxFactory
.ParenthesizedExpression(openParen, operand, closeParen)
1280
nameColonEquals =
SyntaxFactory
.NameColonEquals(argumentName, colonEquals)
1283
Dim argument =
SyntaxFactory
.SimpleArgument(nameColonEquals, ParseExpressionCore())
1293
Dim missing =
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier())
1295
argumentBuilder.Add(
SyntaxFactory
.SimpleArgument(nameColonEquals:=Nothing, expression:=missing))
1301
Dim tupleExpression =
SyntaxFactory
.TupleExpression(openParen, arguments, closeParen)
1352
Return
SyntaxFactory
.ArgumentList(openParen, arguments, closeParen)
1381
Return
SyntaxFactory
.InvocationExpression(Term, Arguments)
1418
Dim namedArgument =
SyntaxFactory
.SimpleArgument(
SyntaxFactory
.NameColonEquals(argumentName, colonEquals), ParseExpressionCore())
1507
argumentName =
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier())
1516
Dim namedArgument =
SyntaxFactory
.SimpleArgument(
SyntaxFactory
.NameColonEquals(argumentName, colonEquals), ParseExpressionCore())
1567
argument =
SyntaxFactory
.RangeArgument(lowerBound, toKeyword, value)
1569
argument =
SyntaxFactory
.SimpleArgument(Nothing, value)
1625
cast =
SyntaxFactory
.CTypeExpression(keyword, openParen, exp, comma, targetType, closeParen)
1627
cast =
SyntaxFactory
.DirectCastExpression(keyword, openParen, exp, comma, targetType, closeParen)
1629
cast =
SyntaxFactory
.TryCastExpression(keyword, openParen, exp, comma, targetType, closeParen)
1719
asClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, returnType)
1735
Return
SyntaxFactory
.LambdaHeader(If(methodKeyword.Kind = SyntaxKind.FunctionKeyword, SyntaxKind.FunctionLambdaHeader, SyntaxKind.SubLambdaHeader),
1736
Nothing, modifiers, methodKeyword,
SyntaxFactory
.ParameterList(openParen, params, closeParen), asClause)
1761
value =
SyntaxFactory
.SingleLineLambdaExpression(SyntaxKind.SingleLineFunctionLambdaExpression,
1904
Return
SyntaxFactory
.AwaitExpression(awaitKeyword, expression)
Parser\ParseInterpolatedString.vb (7)
46
content =
SyntaxFactory
.InterpolatedStringText(textToken)
94
Dim node =
SyntaxFactory
.InterpolatedStringExpression(dollarSignDoubleQuoteToken,
166
Dim valueExpression As ExpressionSyntax =
SyntaxFactory
.NumericLiteralExpression(widthToken)
169
valueExpression =
SyntaxFactory
.UnaryExpression(
175
alignmentClauseOpt =
SyntaxFactory
.InterpolationAlignmentClause(commaToken, valueExpression)
219
formatStringClauseOpt =
SyntaxFactory
.InterpolationFormatClause(colonToken, formatStringToken)
259
Return
SyntaxFactory
.Interpolation(openBraceToken, expression, alignmentClauseOpt, formatStringClauseOpt, closeBraceToken)
Parser\ParseQuery.vb (31)
36
nameEqualsOpt =
SyntaxFactory
.VariableNameEquals(varName, Nothing, Equals)
41
Return
SyntaxFactory
.ExpressionRangeVariable(
95
Return
SyntaxFactory
.FunctionAggregation(curIdent, Nothing, Nothing, Nothing)
122
aggregateFunc =
SyntaxFactory
.FunctionAggregation(aggName, lParen, arg, rParen)
124
aggregateFunc =
SyntaxFactory
.FunctionAggregation(aggName, Nothing, Nothing, Nothing)
165
Return
SyntaxFactory
.ModifiedIdentifier(varName, Nothing, Nothing, Nothing)
203
expr =
SyntaxFactory
.GroupAggregation(groupKw)
219
expr =
SyntaxFactory
.FunctionAggregation(missingIdent, Nothing, Nothing, Nothing)
225
variableNameEquals =
SyntaxFactory
.VariableNameEquals(varName, Nothing, Equals)
228
Return
SyntaxFactory
.AggregationRangeVariable(
338
AsClause =
SyntaxFactory
.SimpleAsClause(AsKw, Nothing, Type)
385
Dim rangeVar =
SyntaxFactory
.ExpressionRangeVariable(
386
SyntaxFactory
.VariableNameEquals(varName, AsClause, Equals),
459
AsClause =
SyntaxFactory
.SimpleAsClause(AsKw, Nothing, Type)
505
Dim rangeVar =
SyntaxFactory
.CollectionRangeVariable(varName, AsClause, [In], source)
668
Return
SyntaxFactory
.GroupByClause(groupKw, elements, byKw, keys, intoKw, Aggregation)
673
rangeVariables.Add(InternalSyntaxFactory.AggregationRangeVariable(Nothing,
SyntaxFactory
.FunctionAggregation(InternalSyntaxFactory.MissingIdentifier(), Nothing, Nothing, Nothing)))
710
Dim missingEq =
SyntaxFactory
.JoinCondition(InternalSyntaxFactory.MissingExpression,
721
Return
SyntaxFactory
.SimpleJoinClause(joinKw, joinVarList, moreJoins, onKw, Predicate)
734
Return
SyntaxFactory
.GroupJoinClause(groupKw, joinKw, joinVarList, moreJoins, onKw, Predicate, intoKw, Aggregation)
805
AsClause =
SyntaxFactory
.SimpleAsClause(AsKw, Nothing, Type)
851
Return
SyntaxFactory
.CollectionRangeVariable(varName, AsClause, [In], source)
887
element =
SyntaxFactory
.JoinCondition(Left, eqKw, Right)
889
element =
SyntaxFactory
.JoinCondition(InternalSyntaxFactory.MissingExpression,
948
Return
SyntaxFactory
.FromClause(FromKw, ParseFromControlVars())
955
Return
SyntaxFactory
.LetClause(LetKw, ParseLetList())
987
element =
SyntaxFactory
.DescendingOrdering(OrderExpression, directionKw)
990
element =
SyntaxFactory
.AscendingOrdering(OrderExpression, directionKw)
1184
Return
SyntaxFactory
.QueryExpression(result)
1197
Return
SyntaxFactory
.QueryExpression(result)
1224
Return
SyntaxFactory
.AggregateClause(AggregateKw, controlVariables, operatorList, intoKw, variables)
Parser\Parser.vb (119)
110
Return
SyntaxFactory
.IdentifierName(id)
117
Return
SyntaxFactory
.IdentifierName(id)
121
Return
SyntaxFactory
.GenericName(id, typeArguments)
177
result =
SyntaxFactory
.GlobalName(DirectCast(CurrentToken, KeywordSyntax))
208
result =
SyntaxFactory
.QualifiedName(
223
result =
SyntaxFactory
.QualifiedName(result, InternalSyntaxFactory.MissingPunctuation(SyntaxKind.DotToken),
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier()))
422
Function()
SyntaxFactory
.CompilationUnit(
523
Dim fakeBegin =
SyntaxFactory
.SubStatement(Nothing, Nothing, InternalSyntaxFactory.MissingKeyword(SyntaxKind.SubKeyword),
675
Return
SyntaxFactory
.AttributesStatement(attributes)
1468
optionalUnderlyingType =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, typeName)
1471
Dim statement As EnumStatementSyntax =
SyntaxFactory
.EnumStatement(attributes, modifiers, enumKeyword, identifier, optionalUnderlyingType)
1528
initializer =
SyntaxFactory
.EqualsValue(optionalEquals, expr)
1532
Dim statement As EnumMemberDeclarationSyntax =
SyntaxFactory
.EnumMemberDeclaration(attributes, ident, initializer)
1667
result =
SyntaxFactory
.NamespaceStatement(namespaceKeyword, namespaceName)
1731
statement =
SyntaxFactory
.EndBlockStatement(endKind, endKeyword, DirectCast(possibleBlockKeyword, KeywordSyntax))
2077
result =
SyntaxFactory
.FieldDeclaration(attributes, modifiers, Declarations)
2081
result =
SyntaxFactory
.LocalDeclarationStatement(modifiers, Declarations)
2156
Dim declaration As VariableDeclaratorSyntax =
SyntaxFactory
.VariableDeclarator(names, optionalAsClause, optionalInitializer)
2235
SyntaxFactory
.AsNewClause(asKeyword,
2256
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, attributesNode, typeName)
2275
optionalInitializer =
SyntaxFactory
.EqualsValue(Equals, value)
2343
optionalAsClause =
SyntaxFactory
.AsNewClause(asKeyword, creationExpression)
2363
Return
SyntaxFactory
.CollectionInitializer(openBrace, Nothing, InternalSyntaxFactory.MissingPunctuation(SyntaxKind.CloseBraceToken))
2397
Return
SyntaxFactory
.CollectionInitializer(openBrace, initializers, closeBrace)
2459
Return
SyntaxFactory
.ObjectMemberInitializer(withKeyword, openBrace, Nothing, InternalSyntaxFactory.MissingPunctuation(SyntaxKind.CloseBraceToken))
2501
Return
SyntaxFactory
.ObjectMemberInitializer(withKeyword, openBrace, initializers, closeBrace)
2535
Return
SyntaxFactory
.ObjectCollectionInitializer(fromKeyword, initializer)
2631
Return
SyntaxFactory
.InferredFieldInitializer(optionalKey, expression)
2646
Return
SyntaxFactory
.NamedFieldInitializer(optionalKey, dot,
SyntaxFactory
.IdentifierName(id), equals, expression)
2707
Return
SyntaxFactory
.ModifiedIdentifier(id, Nothing, Nothing, Nothing)
2735
Return
SyntaxFactory
.ModifiedIdentifier(id, optionalNullable, Nothing, Nothing)
2745
Return
SyntaxFactory
.ModifiedIdentifier(id, optionalNullable, Nothing, Nothing)
2802
typeName =
SyntaxFactory
.PredefinedType(DirectCast(Start, KeywordSyntax))
2807
name =
SyntaxFactory
.IdentifierName(_scanner.MakeIdentifier(DirectCast(Start, KeywordSyntax)))
2853
typeName = ReportSyntaxError(
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier()), errorID)
2888
Dim nullableTypeName As NullableTypeSyntax =
SyntaxFactory
.NullableType(typeName, questionMark)
2928
simpleAsClause =
SyntaxFactory
.SimpleAsClause(asKeywordOpt, attributeLists:=Nothing, type:=typeOpt)
2931
element =
SyntaxFactory
.NamedTupleElement(identifierNameOpt, simpleAsClause)
2935
element =
SyntaxFactory
.TypedTupleElement(typeOpt)
2979
Dim missing =
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier())
2987
Dim tupleType =
SyntaxFactory
.TupleType(openParen, tupleElements, closeParen)
3002
typeName =
SyntaxFactory
.QualifiedName(qualifiedName.Left, qualifiedName.DotToken, genericName)
3006
typeName =
SyntaxFactory
.QualifiedName(leftName, qualifiedName.DotToken, qualifiedName.Right)
3018
typeArgumentList =
SyntaxFactory
.TypeArgumentList(typeArgumentList.OpenParenToken,
3022
genericName =
SyntaxFactory
.GenericName(genericName.Identifier, typeArgumentList)
3044
result =
SyntaxFactory
.IdentifierName(ident)
3071
result =
SyntaxFactory
.ArrayType(elementType, rankSpecifiers)
3121
typeName =
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier)
3165
genericArguments =
SyntaxFactory
.TypeArgumentList(openParen, [of], typeArguments, closeParen)
3207
Dim arrayModifier As ArrayRankSpecifierSyntax =
SyntaxFactory
.ArrayRankSpecifier(openParen, commas, closeParen)
3266
optionalArrayBounds =
SyntaxFactory
.ArgumentList(openParen, arguments, closeParen)
3275
arrayModifiers.Add(
SyntaxFactory
.ArrayRankSpecifier(openParen, commas, closeParen))
3279
arrayModifiers.Add(
SyntaxFactory
.ArrayRankSpecifier(openParen, commas, closeParen))
3289
Return
SyntaxFactory
.ModifiedIdentifier(elementType, optionalNullable, optionalArrayBounds, modifiersArr)
3315
arrayModifiers =
SyntaxFactory
.ArrayRankSpecifier(argumentList.OpenParenToken, builder.ToList, argumentList.CloseParenToken)
3370
arg =
SyntaxFactory
.SimpleArgument(Nothing, upperBound)
3372
arg =
SyntaxFactory
.RangeArgument(lowerBound, toKeyword, upperBound)
3418
optionalParameters =
SyntaxFactory
.ParameterList(openParen, parameters, closeParen)
3433
Dim statement =
SyntaxFactory
.AccessorStatement(accessorKind, attributes, modifiers, methodKeyword, optionalParameters)
3494
Return
SyntaxFactory
.ImplementsClause(implementsKeyword, result)
3517
eventContainer =
SyntaxFactory
.KeywordEventContainer(DirectCast(CurrentToken, KeywordSyntax))
3525
eventContainer =
SyntaxFactory
.WithEventsEventContainer(InternalSyntaxFactory.MissingIdentifier())
3529
eventContainer =
SyntaxFactory
.WithEventsEventContainer(ParseIdentifier())
3545
eventContainer =
SyntaxFactory
.WithEventsPropertyEventContainer(identContainer, Dot, eventMember)
3556
Dim item As HandlesClauseItemSyntax =
SyntaxFactory
.HandlesClauseItem(eventContainer, Dot, eventMember)
3578
Return
SyntaxFactory
.HandlesClause(handlesKeyword, result)
3644
Return
SyntaxFactory
.SubStatement(attributes, modifiers, subKeyword, name, genericParams, parameters, Nothing, handlesClause, implementsClause)
3658
Dim ctorDecl =
SyntaxFactory
.SubNewStatement(attributes, modifiers, subKeyword, newKeyword, parameters)
3740
Return
SyntaxFactory
.ParameterList(openParen, parameters, closeParen)
3803
Dim methodStatement =
SyntaxFactory
.FunctionStatement(attributes, modifiers, functionKeyword, name, genericParams, parameters, asClause, handlesClause, implementsClause)
3869
asClause =
SyntaxFactory
.SimpleAsClause(asKeyword, returnTypeAttributes, returnType)
4000
optionalParameters =
SyntaxFactory
.ParameterList(openParen, params, closeParen)
4025
asClause =
SyntaxFactory
.SimpleAsClause(asKeyword, returnTypeAttributes, returnType)
4031
Dim operatorStatement =
SyntaxFactory
.OperatorStatement(attributes, modifiers, operatorKeyword, operatorToken, optionalParameters, asClause)
4138
optionalParameters =
SyntaxFactory
.ParameterList(openParen, propertyParameters, closeParen)
4168
Dim propertyStatement As PropertyStatementSyntax =
SyntaxFactory
.PropertyStatement(attributes, modifiers, propertyKeyword, ident, optionalParameters, asClause, initializer, implementsClause)
4250
SyntaxFactory
.DelegateStatement(delegateKind,
4365
typeParameterConstraintClause =
SyntaxFactory
.TypeParameterMultipleConstraintClause(asKeyword, openBrace, constraintList, closeBrace)
4374
typeParameterConstraintClause =
SyntaxFactory
.TypeParameterSingleConstraintClause(asKeyword, constraint)
4379
Dim typeParameter =
SyntaxFactory
.TypeParameter(optionalVarianceModifier, name, typeParameterConstraintClause)
4405
Dim result As TypeParameterListSyntax =
SyntaxFactory
.TypeParameterList(openParen, ofKeyword, separatedTypeParameters, closeParen)
4419
constraint =
SyntaxFactory
.NewConstraint(keyword)
4426
constraint =
SyntaxFactory
.ClassConstraint(keyword)
4433
constraint =
SyntaxFactory
.StructureConstraint(keyword)
4452
constraint =
SyntaxFactory
.TypeConstraint(typeName)
4650
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, typeName)
4686
initializer =
SyntaxFactory
.EqualsValue(equals, value)
4689
Return
SyntaxFactory
.Parameter(attributes, modifiers, paramName, optionalAsClause, initializer)
4720
Dim statement As ImportsStatementSyntax =
SyntaxFactory
.ImportsStatement(importsKeyword, result)
4771
importsClause =
SyntaxFactory
.XmlNamespaceImportsClause(lessToken, xmlNamespace, greaterToken)
4802
importsClause =
SyntaxFactory
.SimpleImportsClause(
SyntaxFactory
.ImportAliasClause(aliasIdentifier, equalsToken), name)
4810
importsClause =
SyntaxFactory
.SimpleImportsClause(Nothing, name)
4826
Return
SyntaxFactory
.XmlString(missingDoubleQuote, Nothing, missingDoubleQuote)
4833
Return
SyntaxFactory
.XmlAttribute(
SyntaxFactory
.XmlName(
SyntaxFactory
.XmlPrefix(missingXmlName, missingColon), missingXmlName),
4885
result =
SyntaxFactory
.InheritsStatement(keyword, separatedTypeNames)
4888
result =
SyntaxFactory
.ImplementsStatement(keyword, separatedTypeNames)
4996
Dim statement =
SyntaxFactory
.OptionStatement(optionKeyword, optionType, optionValue)
5140
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, returnAttributes, returnType)
5143
Dim statement =
SyntaxFactory
.DeclareStatement(externalKind,
5198
libraryName =
SyntaxFactory
.StringLiteralExpression(InternalSyntaxFactory.MissingStringLiteral())
5269
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, ReturnType)
5282
ident = ident.AddTrailingSyntax(
SyntaxFactory
.ParameterList(openParen, parameters, closeParen))
5296
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing,
SyntaxFactory
.IdentifierName(InternalSyntaxFactory.MissingIdentifier()))
5309
Dim eventStatement =
SyntaxFactory
.EventStatement(attributes, modifiers, optionalCustomKeyword, eventKeyword, ident, Nothing, optionalAsClause, optionalImplementsClause)
5359
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, returnType)
5384
optionalParameters =
SyntaxFactory
.ParameterList(openParen, parameters, closeParen)
5396
Dim eventStatement =
SyntaxFactory
.EventStatement(attributes, modifiers, Nothing, eventKeyword, ident, optionalParameters, optionalAsClause, optionalImplementsClause)
5433
Dim typeName =
SyntaxFactory
.IdentifierName(ReportSyntaxError(InternalSyntaxFactory.MissingIdentifier(), ERRID.ERR_ExpectedIdentifier))
5434
Dim attribute =
SyntaxFactory
.Attribute(
5440
attributeBlocks.Add(
SyntaxFactory
.AttributeList(lessThan, attributes.ToList(), greaterThan))
5508
optionalTarget =
SyntaxFactory
.AttributeTarget(assemblyOrModuleKeyword, colonToken)
5533
Dim attribute As AttributeSyntax =
SyntaxFactory
.Attribute(optionalTarget, typeName, arguments)
5560
attributeBlocks.Add(
SyntaxFactory
.AttributeList(lessThan, attributes.ToList, greaterThan))
Parser\ParseReportError.vb (1)
86
badStmt =
SyntaxFactory
.IncompleteMember(attributes, modifiers, missingIdentifier)
Parser\ParseStatement.vb (88)
90
Dim statement =
SyntaxFactory
.ContinueStatement(kind, continueKeyword, blockKeyword)
219
statement =
SyntaxFactory
.ReturnStatement(InternalSyntaxFactory.MissingKeyword(SyntaxKind.ReturnKeyword), Nothing)
237
statement =
SyntaxFactory
.ExitStatement(kind, exitKeyword, blockKeyword)
256
Dim caseClause =
SyntaxFactory
.ElseCaseClause(elseKeyword)
283
caseClause =
SyntaxFactory
.RelationalCaseClause(RelationalOperatorKindToCaseKind(relationalOperator.Kind), optionalIsKeyword, relationalOperator, CaseExpr)
311
caseClause =
SyntaxFactory
.RangeCaseClause(value, toKeyword, upperBound)
314
caseClause =
SyntaxFactory
.SimpleCaseClause(value)
336
statement =
SyntaxFactory
.CaseStatement(caseKeyword, separatedCaseClauses)
338
statement =
SyntaxFactory
.CaseElseStatement(caseKeyword, separatedCaseClauses)
391
Dim statement =
SyntaxFactory
.SelectStatement(selectKeyword, optionalCaseKeyword, value)
424
Dim statement =
SyntaxFactory
.IfStatement(ifKeyword, condition, thenKeyword)
437
Dim statement =
SyntaxFactory
.ElseStatement(elseKeyword)
464
Return
SyntaxFactory
.ElseStatement(elseKeyword)
482
Dim statement =
SyntaxFactory
.ElseIfStatement(elseIfKeyword, condition, thenKeyword)
506
statement =
SyntaxFactory
.EndIfStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.IfKeyword))
512
statement =
SyntaxFactory
.EndWhileStatement(missingEndKeyword, InternalSyntaxFactory.MissingKeyword(SyntaxKind.WhileKeyword))
548
Dim statement As DoStatementSyntax =
SyntaxFactory
.DoStatement(kind, doKeyword, optionalWhileOrUntilClause)
574
Dim statement As LoopStatementSyntax =
SyntaxFactory
.LoopStatement(kind, loopKeyword, optionalWhileOrUntilClause)
627
Dim statement =
SyntaxFactory
.ForEachStatement(forKeyword, eachKeyword, controlVariable, inKeyword, expression)
699
optionalStepClause =
SyntaxFactory
.ForStepClause(stepKeyword, stepValue)
703
Dim statement =
SyntaxFactory
.ForStatement(forKeyword, controlVariable, equalsToken, fromValue, toKeyword, toValue, optionalStepClause)
718
Return
SyntaxFactory
.NextStatement(nextKeyword, Nothing)
758
Dim statement =
SyntaxFactory
.NextStatement(nextKeyword, variables.ToList)
851
optionalAsClause =
SyntaxFactory
.SimpleAsClause([As], Nothing, Type)
857
Dim result =
SyntaxFactory
.VariableDeclarator(names.ToList, optionalAsClause, Nothing)
933
Dim gotoStmt =
SyntaxFactory
.GoToStatement(gotoKeyword, GetLabelSyntaxForIdentifierOrLineNumber(labelName))
940
Return If(labelName.Kind = SyntaxKind.IntegerLiteralToken,
SyntaxFactory
.NumericLabel(labelName),
SyntaxFactory
.IdentifierLabel(labelName))
980
Dim statement =
SyntaxFactory
.OnErrorGoToStatement(SyntaxKind.OnErrorGoToLabelStatement,
985
SyntaxFactory
.IdentifierLabel(InternalSyntaxFactory.MissingIdentifier()))
1003
Dim statement =
SyntaxFactory
.OnErrorResumeNextStatement(onKeyword, errorKeyword, resumeKeyword, nextKeyword)
1023
label =
SyntaxFactory
.NumericLabel(nextToken)
1034
label =
SyntaxFactory
.NumericLabel(PeekToken(2))
1046
Dim statement =
SyntaxFactory
.OnErrorGoToStatement(kind, onKeyword, errorKeyword, gotoKeyword, optionalMinusToken, label)
1071
statement =
SyntaxFactory
.ResumeNextStatement(resumeKeyword,
SyntaxFactory
.NextLabel(nextKeyword))
1076
statement =
SyntaxFactory
.ResumeLabelStatement(resumeKeyword, GetLabelSyntaxForIdentifierOrLineNumber(optionalLabel))
1080
statement =
SyntaxFactory
.ResumeStatement(resumeKeyword, Nothing)
1113
Return
SyntaxFactory
.ExpressionStatement(MakeInvocationExpression(target))
1123
target =
SyntaxFactory
.ConditionalAccessExpression(conditionalTarget.Expression, conditionalTarget.QuestionMarkToken, invocation)
1147
Dim argumentList =
SyntaxFactory
.ArgumentList(InternalSyntaxFactory.MissingPunctuation(SyntaxKind.OpenParenToken),
1151
target =
SyntaxFactory
.InvocationExpression(target, ReportSyntaxError(argumentList, ERRID.ERR_ObsoleteArgumentsNeedParens))
1153
target =
SyntaxFactory
.InvocationExpression(target, Nothing)
1164
Return
SyntaxFactory
.SimpleAssignmentStatement(left, operatorToken, right)
1167
Return
SyntaxFactory
.AddAssignmentStatement(left, operatorToken, right)
1170
Return
SyntaxFactory
.SubtractAssignmentStatement(left, operatorToken, right)
1173
Return
SyntaxFactory
.MultiplyAssignmentStatement(left, operatorToken, right)
1176
Return
SyntaxFactory
.DivideAssignmentStatement(left, operatorToken, right)
1179
Return
SyntaxFactory
.IntegerDivideAssignmentStatement(left, operatorToken, right)
1182
Return
SyntaxFactory
.ExponentiateAssignmentStatement(left, operatorToken, right)
1185
Return
SyntaxFactory
.LeftShiftAssignmentStatement(left, operatorToken, right)
1188
Return
SyntaxFactory
.RightShiftAssignmentStatement(left, operatorToken, right)
1191
Return
SyntaxFactory
.ConcatenateAssignmentStatement(left, operatorToken, right)
1215
Dim statement =
SyntaxFactory
.CallStatement(callKeyword, invocation)
1227
expr =
SyntaxFactory
.ConditionalAccessExpression(conditionalTarget.Expression, conditionalTarget.QuestionMarkToken, invocation)
1232
expr =
SyntaxFactory
.InvocationExpression(expr, Nothing)
1260
Dim statement =
SyntaxFactory
.RaiseEventStatement(raiseEventKeyword, ident, optionalArgumentList)
1299
clause =
SyntaxFactory
.RedimClause(invocation.Expression, invocation.ArgumentList)
1306
clause =
SyntaxFactory
.RedimClause(possibleInvocation,
SyntaxFactory
.ArgumentList(InternalSyntaxFactory.MissingPunctuation(SyntaxKind.OpenParenToken),
1323
SyntaxFactory
.ReDimStatement(reDimKeyword, optionalPreserveKeyword, clauses.ToList),
1324
SyntaxFactory
.ReDimPreserveStatement(reDimKeyword, optionalPreserveKeyword, clauses.ToList)
1364
Dim statement =
SyntaxFactory
.AddRemoveHandlerStatement(kind, keyword, eventExpression, commaToken, DelegateExpression)
1399
statement =
SyntaxFactory
.WhileStatement(keyword, operand)
1401
statement =
SyntaxFactory
.WithStatement(keyword, operand)
1403
statement =
SyntaxFactory
.SyncLockStatement(keyword, operand)
1444
Dim statement =
SyntaxFactory
.TryStatement(tryKeyword)
1466
optionalName =
SyntaxFactory
.IdentifierName(id)
1480
optionalAsClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, typeName)
1490
optionalWhenClause =
SyntaxFactory
.CatchFilterClause(whenKeyword, filter)
1493
Dim statement =
SyntaxFactory
.CatchStatement(catchKeyword, optionalName, optionalAsClause, optionalWhenClause)
1508
Dim statement =
SyntaxFactory
.FinallyStatement(finallyKeyword)
1526
Dim statement =
SyntaxFactory
.ThrowStatement(throwKeyword, value)
1543
Dim statement =
SyntaxFactory
.ErrorStatement(errorKeyword, value)
1563
Dim statement =
SyntaxFactory
.EraseStatement(eraseKeyword, variables)
1579
Return ReportSyntaxError(
SyntaxFactory
.LabelStatement(labelName, InternalSyntaxFactory.MissingPunctuation(SyntaxKind.ColonToken)), ERRID.ERR_ObsoleteLineNumbersAreLabels)
1598
Dim statement =
SyntaxFactory
.LabelStatement(labelName, colonToken)
1660
Dim statement =
SyntaxFactory
.MidAssignmentStatement(
SyntaxFactory
.MidExpression(mid,
SyntaxFactory
.ArgumentList(openParen, arguments, closeParen)),
1699
optionalWhileOrUntilClause =
SyntaxFactory
.WhileOrUntilClause(kind, keyword, condition)
1712
Dim clause As WhileOrUntilClauseSyntax =
SyntaxFactory
.WhileOrUntilClause(kind, keyword, InternalSyntaxFactory.MissingExpression)
1765
Dim statement =
SyntaxFactory
.ReturnStatement(returnKeyword, operand)
1783
Dim statement =
SyntaxFactory
.StopOrEndStatement(stmtKind, stopOrEndKeyword)
1814
Dim statement =
SyntaxFactory
.UsingStatement(usingKeyword, optionalExpression, variables)
1833
Dim statement =
SyntaxFactory
.ExpressionStatement(expression)
1852
Dim result =
SyntaxFactory
.YieldStatement(yieldKeyword, expression)
1863
Dim result =
SyntaxFactory
.PrintStatement(questionToken, expression)
Parser\ParseTerminal.vb (9)
137
Return
SyntaxFactory
.IdentifierName(Name)
154
Return
SyntaxFactory
.GenericName(Name, Arguments)
156
Return
SyntaxFactory
.IdentifierName(Name)
164
Dim Literal As LiteralExpressionSyntax =
SyntaxFactory
.NumericLiteralExpression(CurrentToken)
173
Dim Literal As LiteralExpressionSyntax =
SyntaxFactory
.CharacterLiteralExpression(CurrentToken)
183
Dim Literal As LiteralExpressionSyntax =
SyntaxFactory
.NumericLiteralExpression(CurrentToken)
199
Return
SyntaxFactory
.StringLiteralExpression(stringToken)
208
Dim Literal As LiteralExpressionSyntax =
SyntaxFactory
.NumericLiteralExpression(CurrentToken)
220
Dim Literal As LiteralExpressionSyntax =
SyntaxFactory
.DateLiteralExpression(CurrentToken)
Parser\ParseXml.vb (55)
78
body =
SyntaxFactory
.XmlEmptyElement(DirectCast(HandleUnexpectedToken(SyntaxKind.LessThanToken), PunctuationSyntax),
79
SyntaxFactory
.XmlName(Nothing, DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlNameToken), XmlNameTokenSyntax)),
90
Return
SyntaxFactory
.XmlDocument(prologue, precedingMisc, body, followingMisc)
239
Dim version =
SyntaxFactory
.XmlDeclarationOption(DirectCast(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlNameToken), XmlNameTokenSyntax),
245
Return
SyntaxFactory
.XmlDeclaration(beginPrologue,
310
result =
SyntaxFactory
.XmlDeclarationOption(name, equals, value)
530
Return
SyntaxFactory
.XmlElementStartTag(lessThan, Name, Attributes, greaterThan)
537
Return
SyntaxFactory
.XmlEmptyElement(lessThan, Name, Attributes, endEmptyElementToken)
558
Return
SyntaxFactory
.XmlEmptyElement(lessThan, Name, Attributes, endEmptyElementToken)
627
Dim missingName =
SyntaxFactory
.XmlName(Nothing, missingXmlNameToken)
629
Dim startElement =
SyntaxFactory
.XmlElementStartTag(missingLessThan, missingName, Nothing, missingGreaterThan)
670
xml =
SyntaxFactory
.XmlText(textResult)
677
xml =
SyntaxFactory
.XmlText(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlTextLiteralToken))
726
Dim missingEndElement =
SyntaxFactory
.XmlElementEndTag(DirectCast(HandleUnexpectedToken(SyntaxKind.LessThanSlashToken), PunctuationSyntax),
727
ReportSyntaxError(InternalSyntaxFactory.XmlName(Nothing,
SyntaxFactory
.XmlNameToken("", SyntaxKind.XmlNameToken, Nothing, Nothing)), ERRID.ERR_ExpectedXmlName),
798
Return
SyntaxFactory
.XmlEmptyElement(lessThan, Name, attributes, endEmptyElementToken)
807
Return
SyntaxFactory
.XmlElementStartTag(lessThan, Name, attributes, greaterThan)
822
Return
SyntaxFactory
.XmlElementStartTag(lessThan, Name, attributes, greaterThan)
845
result =
SyntaxFactory
.XmlText(CurrentToken)
848
result =
SyntaxFactory
.XmlText(HandleUnexpectedToken(SyntaxKind.XmlTextLiteralToken))
917
Return
SyntaxFactory
.XmlElementEndTag(beginEndElement, name, greaterToken)
987
Result =
SyntaxFactory
.XmlAttribute(Name, equals, value)
995
Result =
SyntaxFactory
.XmlAttribute(Name, equals, value)
1010
value =
SyntaxFactory
.XmlString(missingQuote, Nothing, missingQuote)
1017
Result =
SyntaxFactory
.XmlAttribute(Name, DirectCast(HandleUnexpectedToken(SyntaxKind.EqualsToken), PunctuationSyntax), value)
1100
Dim type As PredefinedTypeSyntax =
SyntaxFactory
.PredefinedType(DirectCast(CurrentToken, KeywordSyntax))
1105
crefReference =
SyntaxFactory
.CrefReference(type, Nothing, Nothing)
1127
crefAttribute =
SyntaxFactory
.XmlCrefAttribute(xmlName, equals, startQuote, crefReference, endQuote)
1148
crefAttribute =
SyntaxFactory
.XmlCrefAttribute(xmlName, equals, startQuote, crefReference, endQuote)
1182
asClause =
SyntaxFactory
.SimpleAsClause(asKeyword, Nothing, returnType)
1186
Dim result As CrefReferenceSyntax =
SyntaxFactory
.CrefReference(name, signature, asClause)
1226
Return
SyntaxFactory
.CrefSignature(openParen, typeArguments, closeParen)
1253
signatureTypes.Add(
SyntaxFactory
.CrefSignaturePart(modifier, typeName))
1281
Return
SyntaxFactory
.CrefOperatorReference(operatorKeyword, operatorToken)
1289
result =
SyntaxFactory
.GlobalName(DirectCast(CurrentToken, KeywordSyntax))
1297
result =
SyntaxFactory
.IdentifierName(
1341
Return
SyntaxFactory
.QualifiedCrefOperatorReference(result, dotToken, operatorReference)
1354
result =
SyntaxFactory
.QualifiedName(result, dotToken, simpleName)
1427
nameAttribute =
SyntaxFactory
.XmlNameAttribute(xmlName,
1430
SyntaxFactory
.IdentifierName(DirectCast(identToken, IdentifierTokenSyntax)),
1557
prefix =
SyntaxFactory
.XmlPrefix(localName, colon)
1577
Dim name =
SyntaxFactory
.XmlName(prefix, localName)
1619
localName =
SyntaxFactory
.XmlNameToken(localName.Text, localName.PossibleKeywordKind, localName.GetLeadingTrivia(), trailingTrivia.Node).WithDiagnostics(localName.GetDiagnostics())
1627
prefix =
SyntaxFactory
.XmlPrefix(localName, colon)
1642
Return
SyntaxFactory
.XmlName(prefix, localName)
1653
Dim name =
SyntaxFactory
.XmlNameToken(id.Text, id.PossibleKeywordKind, token.GetLeadingTrivia(), token.GetTrailingTrivia())
1667
Return
SyntaxFactory
.XmlNameToken(token.Text, token.Kind, token.GetLeadingTrivia(), token.GetTrailingTrivia())
1785
xml =
SyntaxFactory
.XmlText(textResult)
1796
xml =
SyntaxFactory
.XmlText(InternalSyntaxFactory.MissingToken(SyntaxKind.XmlTextLiteralToken))
1876
Dim result =
SyntaxFactory
.XmlProcessingInstruction(beginProcessingInstruction, name, values.ToList, endProcessingInstruction)
1908
Return
SyntaxFactory
.XmlCDataSection(beginCData, result, endCData)
1937
Return
SyntaxFactory
.XmlComment(beginComment, result, endComment)
1977
Dim result =
SyntaxFactory
.XmlString(startQuote, list.ToList, endQuote)
1993
Dim result =
SyntaxFactory
.XmlString(startQuote, list.ToList, DirectCast(endQuote, PunctuationSyntax))
2043
Dim result =
SyntaxFactory
.XmlEmbeddedExpression(beginXmlEmbedded, value, endXmlEmbedded)