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