Binding\Binder_Constraints.vb (8)
53ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleNewConstraints)
55ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NewAndValueConstraintsCombined)
63ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleReferenceConstraints)
65ReportDiagnostic(diagnostics, syntax, ERRID.ERR_RefAndValueConstraintsCombined)
73ReportDiagnostic(diagnostics, syntax, ERRID.ERR_MultipleValueConstraints)
75ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NewAndValueConstraintsCombined)
77ReportDiagnostic(diagnostics, syntax, ERRID.ERR_RefAndValueConstraintsCombined)
88ReportDiagnostic(diagnostics, syntax, ERRID.ERR_UnrecognizedType)
Binding\Binder_Expressions.vb (34)
346ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_TupleLiteralDisallowsTypeChar)
568Binder.ReportDiagnostic(diagnostics, syntax, ERRID.ERR_TupleDuplicateElementName)
717ReportDiagnostic(diagnostics, group.TypeArgumentsOpt.Syntax, ERRID.ERR_MethodTypeArgsUnexpected)
981ReportDiagnostic(diagnostics, group.Syntax, ERRID.ERR_InvalidConstructorCall)
1239ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1247ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1282ReportDiagnostic(diagnostics, syntax, ERRID.ERR_VoidValue)
1458ReportDiagnostic(diagnostics, expr.Syntax, ERRID.ERR_VoidValue)
1480ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoType)
1587ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoType)
1593ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitNoTypeObjectDisallowed)
1595ReportDiagnostic(diagnostics, arrayLiteral.Syntax, ERRID.ERR_ArrayInitTooManyTypesObjectDisallowed)
1776ReportDiagnostic(diagnostics, expr.Syntax, err)
2103ReportDiagnostic(diagnostics, node.FirstExpression, ERRID.ERR_IllegalCondTypeInIIF)
2165ReportDiagnostic(diagnostics, node, ERRID.ERR_IfNoType)
2172ReportDiagnostic(diagnostics, node, ERRID.ERR_IfNoTypeObjectDisallowed)
2182ReportDiagnostic(diagnostics, node, ERRID.ERR_IfTooManyTypesObjectDisallowed)
2818ReportDiagnostic(diagnostics, node, ERRID.ERR_InvalidConstructorCall)
3224ReportDiagnostic(diagnostics, node, ERRID.ERR_BadResumableAccessReturnVariable)
3627ReportDiagnostic(diagnostics, node, ERRID.WRN_SharedMemberThroughInstance)
3651ReportDiagnostic(diagnostics, node, ERRID.ERR_ObjectReferenceNotSupplied)
3659ReportDiagnostic(diagnostics, node, errorId)
3906ReportDiagnostic(diagnostics, node, ERRID.ERR_NamedSubscript)
3918ReportDiagnostic(diagnostics, node.ArgumentList, err)
4259ReportDiagnostic(diagnostics, expr, ERRID.ERR_ArrayInitializerTooFewDimensions)
4273ReportDiagnostic(diagnostics, node, ERRID.ERR_ArrayInitializerForNonConstDim)
4298ReportDiagnostic(diagnostics, rangeArgument.LowerBound, ERRID.ERR_OnlyNullLowerBound)
4344ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_NamedSubscript)
4356ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_MissingSubscript)
4383ReportDiagnostic(diagnostics, argumentSyntax, ERRID.ERR_NegativeArraySize)
4616ReportDiagnostic(diagnostics, node.AwaitKeyword, ERRID.ERR_BadAsyncInQuery)
4650ReportDiagnostic(diagnostics, node, ERRID.ERR_BadAwaitNothing)
4655ReportDiagnostic(diagnostics, node, ERRID.ERR_StrictDisallowsLateBinding)
4658ReportDiagnostic(diagnostics, node, ERRID.WRN_LateBindingResolution)
Binding\Binder_Invocation.vb (7)
130ReportDiagnostic(diagnostics, group.Syntax, ERRID.ERR_InvalidConstructorCall)
894ReportDiagnostic(diagnostics, errorLocation, ERRID.WRN_AsyncSubCouldBeFunction)
2065ReportDiagnostic(diagnostics, arguments(i).Syntax, ERRID.ERR_TooManyArgs)
2090ReportDiagnostic(diagnostics, arguments(i).Syntax, ERRID.ERR_OmittedParamArrayArgument)
2151ReportDiagnostic(diagnostics, GetNamedArgumentIdentifier(arguments(i).Syntax), ERRID.ERR_NamedParamArrayArgument)
2400ReportDiagnostic(diagnostics, paramArrayArgument.Syntax, ERRID.ERR_ParamArrayArgumentMismatch)
2531ReportDiagnostic(diagnostics, argument.Syntax, ERRID.ERR_ReadOnlyInClosure)
Binding\Binder_Lambda.vb (12)
56ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_BadAsyncReturn)
65ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.AsClause.Type, ERRID.ERR_BadIteratorReturn)
76ReportDiagnostic(diagnostics, node.SubOrFunctionHeader.DeclarationKeyword, ERRID.ERR_BadIteratorReturn)
182ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_BadAsyncReturn)
190ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_BadIteratorReturn)
487ReportDiagnostic(diagnostics, statement, ERRID.ERR_SubDisallowsStatement)
567ReportDiagnostic(diagnostics,
639ReportDiagnostic(_diagnostics, node.Syntax, ERRID.ERR_BadAwaitInTryHandler)
653ReportDiagnostic(diagnostics, unboundParam.IdentifierSyntax, ERRID.ERR_StrictDisallowImplicitObjectLambda)
960ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaNoType)
970ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaNoTypeObjectDisallowed)
974ReportDiagnostic(diagnostics, LambdaHeaderErrorNode(source), ERRID.ERR_LambdaTooManyTypesObjectDisallowed)
Binding\Binder_Query.vb (7)
2159ReportDiagnostic(diagnostics, identifier, ERRID.ERR_QueryAnonymousTypeDisallowsTypeChar)
2163ReportDiagnostic(diagnostics, identifier, ERRID.ERR_QueryInvalidControlVariableName1)
2840ReportDiagnostic(diagnostics, variableName.Identifier.Nullable, ERRID.ERR_NullableTypeInferenceNotSupported)
2852ReportDiagnostic(diagnostics, failedToInferFromXmlName.LocalName, ERRID.ERR_QueryAnonTypeFieldXMLNameInference)
2854ReportDiagnostic(diagnostics, item.Expression, ERRID.ERR_QueryAnonymousTypeFieldNameInference)
3909ReportDiagnostic(diagnostics, functionAggregationSyntax.FunctionName, ERRID.ERR_TypeCharOnAggregation)
4159ReportDiagnostic(diagnostics, syntax.Identifier.Nullable, ERRID.ERR_NullableTypeInferenceNotSupported)
Binding\Binder_Statements.vb (45)
338ReportDiagnostic(diagnostics, DirectCast(methodBlock.BlockStatement, MethodStatementSyntax).Identifier, ERRID.WRN_AsyncLacksAwaits)
478Binder.ReportDiagnostic(diagnostics, node.Syntax, ERRID.ERR_TryAndOnErrorDoNotMix)
526ReportDiagnostic(_diagnostics, node.Syntax,
577ReportDiagnostic(_diagnostics, node.Syntax, ERRID.ERR_BadAwaitInTryHandler)
729ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_RedimNoSizes)
735ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_RedimRankMismatch)
745ReportDiagnostic(diagnostics, redimOperand, ERRID.ERR_ArrayRankLimit)
944ReportDiagnostic(diagBag, keywordSyntax, ERRID.ERR_DuplicateSpecifier)
972ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_BadStaticLocalInStruct)
974ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_StaticInLambda)
976ReportDiagnostic(diagBag, firstStatic, ERRID.ERR_BadStaticLocalInGenericMethod)
1008ReportDiagnostic(diagnostics, varDecl, ERRID.ERR_InitWithMultipleDeclarators)
1137ReportDiagnostic(diagnostics, name, ERRID.ERR_BadStaticInitializerInResumable)
1207ReportDiagnostic(diagnostics, asNew.NewExpression.NewKeyword, ERRID.ERR_AsNewArray)
1224ReportDiagnostic(diagnostics, name, ERRID.ERR_InitWithExplicitArraySizes)
1239ReportDiagnostic(diagnostics, errSyntax, ERRID.ERR_ConstAsNonConstant)
1417ReportDiagnostic(diagnostics, modifiedIdentifierOpt, ERRID.ERR_NullableTypeInferenceNotSupported)
1745ReportDiagnostic(diagnostics, nameSyntax, ERRID.ERR_LocalSameAsFunc)
2255ReportDiagnostic(diagnostics, node.DelegateExpression, ERRID.WRN_LambdaPassedToRemoveHandler)
2284ReportDiagnostic(diagnostics, addrOffExpr.Operand, ERRID.WRN_RelDelegatePassedToRemoveHandler)
2381ReportDiagnostic(diagnostics, notQualifiedSyntax, ERRID.ERR_AddOrRemoveHandlerEvent)
2462ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_CantRaiseBaseEvent)
2485ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventTypeNotDelegate)
2500ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventsCantBeFunctions)
2521ReportDiagnostic(diagnostics, node.Name, ERRID.ERR_EventsCantBeFunctions)
2664ReportDiagnostic(diagnostics, statement, ERRID.WRN_UnobservedAwaitableExpression)
2697ReportDiagnostic(diagnostics, boundInvocation.Syntax, ERRID.ERR_PropertyAccessIgnored)
2713ReportDiagnostic(diagnostics, boundInvocation.Syntax, ERRID.ERR_PropertyAccessIgnored)
3536ReportDiagnostic(diagnostics, identifier, ERRID.ERR_NullableTypeInferenceNotSupported)
3543ReportDiagnostic(diagnostics, identifier, ERRID.ERR_ForCtlVarArraySizesSpecified)
3604ReportDiagnostic(diagnostics, controlVariable.Syntax, ERRID.ERR_LoopControlMustNotBeProperty)
3619ReportDiagnostic(diagnostics, controlVariable.Syntax, ERRID.ERR_LoopControlMustNotAwait)
4727ReportDiagnostic(diagnostics, node.TryStatement, ERRID.ERR_TryWithoutCatchOrFinally)
4889ReportDiagnostic(diagnostics, node, id)
4910ReportDiagnostic(diagnostics, node, id)
4989ReportDiagnostic(diagnostics, originalSyntax,
5054ReportDiagnostic(diagnostics, originalSyntax, ERRID.ERR_ReturnWithoutValue)
5071ReportDiagnostic(diagnostics, node, ERRID.ERR_BadYieldInNonIteratorMethod)
5178ReportDiagnostic(diagnostics, node, ERRID.ERR_MustBeInCatchToRethrow)
5191ReportDiagnostic(diagnostics, node, ERRID.ERR_CantThrowNonException)
5215ReportDiagnostic(diagnostics, node, ERRID.ERR_MultilineLambdasCannotContainOnError)
5217ReportDiagnostic(diagnostics, node, ERRID.ERR_ResumablesCannotContainOnError)
5250ReportDiagnostic(diagnostics, node, ERRID.ERR_MultilineLambdasCannotContainOnError)
5252ReportDiagnostic(diagnostics, node, ERRID.ERR_ResumablesCannotContainOnError)
5292ReportDiagnostic(diagnostics, endStatementSyntax, ERRID.ERR_EndDisallowedInDllProjects)
Binding\Binder_Utils.vb (17)
24ReportDiagnostic(diagBag, identifier, errid)
338ReportDiagnostic(diagnostics, arrayModifier, ERRID.ERR_ArrayRankLimit)
369ReportDiagnostic(diagnostics, arrayBoundsOpt, ERRID.ERR_ArrayRankLimit)
498ReportDiagnostic(diagBag, asClauseSyntaxOpt, ERRID.ERR_CantSpecifyNullableOnBoth)
504ReportDiagnostic(diagBag, asClauseSyntaxOpt, ERRID.ERR_CantSpecifyAsNewAndNullable)
515ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_NullableParameterMustSpecifyType)
527ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_NullableImplicit)
547ReportDiagnostic(diagBag, asClauseSyntaxOpt.Type, ERRID.ERR_CantSpecifyArraysOnBoth)
555ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_CantSpecifyParamsOnLambdaParamNoType)
1053ReportDiagnostic(diagBag, paramSyntax.Identifier.Identifier, ERRID.ERR_ParamArrayWithOptArgs)
1060ReportDiagnostic(diagBag, paramSyntax.Identifier.Identifier, ERRID.ERR_ExpectedOptional)
1069ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_ParamArrayMustBeLast)
1084ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_BadAsyncByRefParam)
1087ReportDiagnostic(diagBag, paramSyntax, ERRID.ERR_BadIteratorByRefParam)
1135ReportDiagnostic(diagBag, paramSyntax.Identifier, ERRID.ERR_ParamTypingInconsistency)
1305ReportDiagnostic(diagnostics, boundExpression.Syntax, ERRID.ERR_RequiredConstExpr)
1355ReportDiagnostic(diagnostics, boundExpression.Syntax, ERRID.ERR_RequiredConstExpr)
Binding\Binder_XmlLiterals.vb (7)
648ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoXmlAxesLateBinding)
698ReportDiagnostic(diagnostics, syntax, ERRID.ERR_NoXmlAxesLateBinding)
796ReportDiagnostic(diagnostics, prefixToken, ERRID.ERR_IllegalXmlnsPrefix)
1041ReportDiagnostic(diagnostics, syntax, ERRID.ERR_XmlFeaturesNotAvailable)
1199ReportDiagnostic(diagnostics, valueSyntax, ERRID.ERR_EmbeddedExpression)
1221ReportDiagnostic(diagnostics, nameSyntax.LocalName, ERRID.ERR_IllegalDefaultNamespace)
1282ReportDiagnostic(diagnostics, syntax, ERRID.WRN_EmptyPrefixAndXmlnsLocalName)
Symbols\Source\SourceEventSymbol.vb (5)
171Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventTypeNotDelegate)
178Binder.ReportDiagnostic(diagnostics, syntax.AsClause.Type, ERRID.ERR_EventDelegatesCantBeFunctions)
185Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
190Binder.ReportDiagnostic(diagnostics, syntax.Identifier, ERRID.ERR_WinRTEventWithoutDelegate)
263Binder.ReportDiagnostic(diagnostics, syntax.Modifiers.First(SyntaxKind.SharedKeyword), ERRID.ERR_SharedOnProcThatImpl)
Symbols\Source\SourceMemberFieldSymbol.vb (10)
116binder.ReportDiagnostic(diagBag, modifiedIdentifier.Identifier, ERRID.ERR_ConstAsNonConstant)
119binder.ReportDiagnostic(diagBag, declarator.AsClause.Type, ERRID.ERR_ConstAsNonConstant)
123binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ConstantWithNoValue)
213binder.ReportDiagnostic(diagnostics, modifiedIdentifier, ERRID.ERR_EventSourceIsArray)
222binder.ReportDiagnostic(diagnostics, identifier, ERRID.ERR_WithEventsAsStruct)
498binder.ReportDiagnostic(diagBag, declarator, ERRID.ERR_InitWithMultipleDeclarators)
518binder.ReportDiagnostic(diagBag,
524binder.ReportDiagnostic(diagBag, DirectCast(asClauseOpt, AsNewClauseSyntax).NewExpression.NewKeyword, ERRID.ERR_SharedStructMemberCannotSpecifyNew)
606binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_ArrayInitInStruct)
621binder.ReportDiagnostic(diagBag, modifiedIdentifier, ERRID.ERR_InitWithExplicitArraySizes)
Symbols\Source\SourceMemberMethodSymbol.vb (7)
326Binder.ReportDiagnostic(diagBag, typeParamSyntax, ERRID.ERR_TypeParamNameFunctionNameCollision)
612Binder.ReportDiagnostic(diagBag, singleHandleClause, ERRID.ERR_HandlesSyntaxInModule)
654Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_NoWithEventsVarOnHandlesList)
665Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsSharedHandler)
670Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_SharedEventNeedsHandlerInTheSameType)
684Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
702Binder.ReportDiagnostic(diagBag, singleHandleClause.EventContainer, ERRID.ERR_HandlesSyntaxInClass)
Symbols\Source\SourceNamedTypeSymbol.vb (7)
840Binder.ReportDiagnostic(diagBag, varianceKeyword, ERRID.ERR_VarianceDisallowedHere)
1062Binder.ReportDiagnostic(diagBag, baseDecl, errId)
1089Binder.ReportDiagnostic(diagBag, inheritsDeclaration, ERRID.ERR_MultipleExtends)
1115Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonClass)
1198Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_InheritsFromNonInterface)
1243Binder.ReportDiagnostic(diagBag, baseClassSyntax, ERRID.ERR_BadImplementsType)
1784Binder.ReportDiagnostic(diagnostics, underlyingType.Type, ERRID.ERR_InvalidEnumBase)