117 references to StringConstants
Microsoft.CodeAnalysis.VisualBasic (117)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1322Return StringConstants.AnonymousMethodName
Binding\BackstopBinder.vb (6)
236{StringConstants.DefaultXmlnsPrefix, StringConstants.DefaultXmlNamespace}, 237{StringConstants.XmlPrefix, StringConstants.XmlNamespace}, 238{StringConstants.XmlnsPrefix, StringConstants.XmlnsNamespace}
Binding\Binder_AnonymousTypes.vb (2)
461ReportDiagnostic(diagnostics, node, ERRID.ERR_NameNotMemberOfAnonymousType2, name, StringConstants.AnonymousTypeName) 468ReportDiagnostic(diagnostics, node, ERRID.ERR_NoDefaultNotExtend1, StringConstants.AnonymousTypeName)
Binding\Binder_Invocation.vb (1)
549LookupMember(result, target.Type, StringConstants.ElementAtMethod, 0, options, useSiteInfo)
Binding\Binder_Lookup.vb (2)
1260If (arity <> 0) OrElse Not IdentifierComparison.Equals(name, StringConstants.ValueProperty) Then 1339nameSet.AddSymbol(Nothing, StringConstants.ValueProperty, 0)
Binding\Binder_Query.vb (31)
357StringConstants.SelectMethod, 552StringConstants.SelectMethod, 623StringConstants.SelectMethod, 694StringConstants.SelectMethod, 840StringConstants.SelectMethod, 1156StringConstants.SelectManyMethod, 1533StringConstants.JoinMethod, 1718StringConstants.GroupJoinMethod, 1823StringConstants.GroupByMethod, 1957methodGroup = LookupQueryOperator(groupBy, source, StringConstants.GroupByMethod, Nothing, diagnostics) 1961ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod) 2000ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod) 2035methodGroup = LookupQueryOperator(groupJoin, outer, StringConstants.GroupJoinMethod, Nothing, diagnostics) 2041ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupJoinMethod) 2077ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupJoinMethod) 2246StringConstants.WhereMethod, where.WhereKeyword.Span, 2264StringConstants.SkipWhileMethod, 2293StringConstants.TakeWhileMethod, 2421StringConstants.DistinctMethod, 2448Return BindPartitionClause(source, skip, StringConstants.SkipMethod, diagnostics) 2464Return BindPartitionClause(source, take, StringConstants.TakeMethod, diagnostics) 2587operatorName = StringConstants.OrderByMethod 2590operatorName = StringConstants.OrderByDescendingMethod 2596operatorName = StringConstants.ThenByMethod 2599operatorName = StringConstants.ThenByDescendingMethod 4294StringConstants.SelectMethod, 4353Dim asQueryable As BoundExpression = BindQueryOperatorCall(source.Syntax, source, StringConstants.AsQueryableMethod, 4371Dim asEnumerable As BoundExpression = BindQueryOperatorCall(source.Syntax, source, StringConstants.AsEnumerableMethod, 4392Dim cast As BoundExpression = BindQueryOperatorCall(source.Syntax, source, StringConstants.CastMethod, 4425LookupMember(lookupResult, source.Type, StringConstants.SelectMethod, 0, QueryOperatorLookupOptions, useSiteInfo) 4446Me.LookupExtensionMethods(lookupResult, source.Type, StringConstants.SelectMethod, 0, QueryOperatorLookupOptions, useSiteInfo)
Binding\Binder_Utils.vb (7)
972If CheckReservedParameterName(StringConstants.ValueParameterName, paramSyntax, ERRID.ERR_PropertySetParamCollisionWithValue, diagBag) Then 1523prefix = StringConstants.PropertyGetPrefix 1526prefix = StringConstants.WinMdPropertySetPrefix 1528prefix = StringConstants.PropertySetPrefix 1531prefix = StringConstants.EventAddPrefix 1533prefix = StringConstants.EventRemovePrefix 1535prefix = StringConstants.EventRaisePrefix
Binding\Binder_XmlLiterals.vb (29)
231StringConstants.XmlAddMethodName, 361StringConstants.XmlRemoveNamespaceAttributesMethodName, 378Dim localName = If(String.IsNullOrEmpty(prefix), StringConstants.XmlnsPrefix, prefix) 379Dim [namespace] = If(String.IsNullOrEmpty(prefix), StringConstants.DefaultXmlNamespace, StringConstants.XmlnsNamespace) 430Dim group = GetXmlMethodOrPropertyGroup(syntax, type, StringConstants.XmlCreateNamespaceAttributeMethodName, Nothing, diagnostics) 485StringConstants.XmlCreateAttributeMethodName, 658StringConstants.XmlAttributeValueMethodName, 681Return BindXmlElementAccess(syntax, StringConstants.XmlElementsMethodName, ERRID.ERR_TypeDisallowsElements, diagnostics) 685Return BindXmlElementAccess(syntax, StringConstants.XmlDescendantsMethodName, ERRID.ERR_TypeDisallowsDescendants, diagnostics) 794If forElement AndAlso (prefix = StringConstants.XmlnsPrefix) Then 806prefix = StringConstants.DefaultXmlnsPrefix 812[namespace] = StringConstants.DefaultXmlNamespace 835If [namespace] = StringConstants.DefaultXmlNamespace Then 836If Not forElement OrElse (prefix = StringConstants.DefaultXmlnsPrefix) Then 839prefix = StringConstants.DefaultXmlnsPrefix 855StringConstants.XmlGetMethodName, 879Dim found = LookupXmlNamespace(StringConstants.DefaultXmlnsPrefix, False, [namespace], fromImports) 891StringConstants.XmlGetMethodName, 1211If (prefix = StringConstants.XmlnsPrefix) OrElse 1212((prefix = StringConstants.XmlPrefix) AndAlso (namespaceName <> StringConstants.XmlNamespace)) Then 1224ElseIf RedefinesReservedXmlNamespace(syntax.Value, prefix, StringConstants.XmlnsPrefix, namespaceName, StringConstants.XmlnsNamespace, diagnostics) OrElse 1225RedefinesReservedXmlNamespace(syntax.Value, prefix, StringConstants.XmlPrefix, namespaceName, StringConstants.XmlNamespace, diagnostics) Then 1262If prefixName = StringConstants.XmlnsPrefix Then 1268If localName = StringConstants.XmlnsPrefix Then 1281If LookupXmlNamespace(prefixName, True, [namespace], fromImports) AndAlso ([namespace] = StringConstants.DefaultXmlNamespace) Then
Binding\DocumentationCommentCrefBinder.vb (2)
318Return ImmutableArray.Create(Of Symbol)(New CrefTypeParameterSymbol(ordinal, StringConstants.NamedSymbolErrorName, name)) 839created = New CrefTypeParameterSymbol(i, StringConstants.NamedSymbolErrorName, typeSyntax)
Lowering\LocalRewriter\LocalRewriter_XmlLiterals.vb (2)
330Return CreateStringLiteral(syntax, If(prefix = StringConstants.DefaultXmlnsPrefix, StringConstants.XmlnsPrefix, prefix))
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
248symbolName = StringConstants.NamedSymbolErrorName
Symbols\AnonymousTypes\PublicSymbols\AnonymousDelegate_TypePublicSymbol.vb (5)
57False, StringConstants.DelegateConstructorInstanceParameterName), 59False, StringConstants.DelegateConstructorMethodParameterName) 86False, StringConstants.DelegateMethodCallbackParameterName)) 89False, StringConstants.DelegateMethodInstanceParameterName)) 108False, StringConstants.DelegateMethodResultParameterName))
Symbols\AnonymousTypes\PublicSymbols\AnonymousType_PropertyPublicAccessors.vb (1)
74New SynthesizedParameterSymbol(Me, m_propertyOrEvent.Type, 0, False, StringConstants.ValueParameterName))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (5)
70New AnonymousTypeOrDelegateParameterSymbol(delegateCtor, manager.System_Object, 0, False, StringConstants.DelegateConstructorInstanceParameterName), 71New AnonymousTypeOrDelegateParameterSymbol(delegateCtor, manager.System_IntPtr, 1, False, StringConstants.DelegateConstructorMethodParameterName) 95parameters.Add(New AnonymousTypeOrDelegateParameterSymbol(delegateBeginInvoke, manager.System_AsyncCallback, i, False, StringConstants.DelegateMethodCallbackParameterName)) 97parameters.Add(New AnonymousTypeOrDelegateParameterSymbol(delegateBeginInvoke, manager.System_Object, i, False, StringConstants.DelegateMethodInstanceParameterName)) 116parameters.Add(New AnonymousTypeOrDelegateParameterSymbol(delegateEndInvoke, manager.System_IAsyncResult, ordinal, False, StringConstants.DelegateMethodResultParameterName))
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_PropertyAccessors.vb (1)
93New SynthesizedParameterSymbol(Me, m_propertyOrEvent.Type, 0, False, StringConstants.ValueParameterName))
Symbols\Source\SourceDelegateMethodSymbol.vb (5)
228New SynthesizedParameterSymbol(Me, objectType, 0, False, StringConstants.DelegateConstructorInstanceParameterName), 229New SynthesizedParameterSymbol(Me, intPtrType, 1, False, StringConstants.DelegateConstructorMethodParameterName))) 300parameters.Add(New SynthesizedParameterSymbol(Me, asyncCallbackType, ordinal, False, StringConstants.DelegateMethodCallbackParameterName)) 302parameters.Add(New SynthesizedParameterSymbol(Me, objectType, ordinal, False, StringConstants.DelegateMethodInstanceParameterName)) 349parameters.Add(New SynthesizedParameterSymbol(Me, iAsyncResultType, parameters.Count, False, StringConstants.DelegateMethodResultParameterName))
Symbols\Source\SourceEventSymbol.vb (2)
148_backingField = New SynthesizedEventBackingFieldSymbol(Me, Me.Name & StringConstants.EventVariableSuffix, Me.IsShared) 223Dim types = _containingType.GetTypeMembers(Me.Name & StringConstants.EventDelegateSuffix)
Symbols\Source\SourcePropertyAccessorSymbol.vb (4)
58If(propertySymbol.IsAutoProperty, StringConstants.AutoPropertyValueParameterName, StringConstants.ValueParameterName)) 423If Not IdentifierComparison.Equals(param.Name, StringConstants.ValueParameterName) Then 455Dim valueParameter = SynthesizedParameterSymbol.CreateSetAccessorValueParameter(method, propertySymbol, parameterName:=StringConstants.ValueParameterName)
Symbols\Source\SourcePropertySymbol.vb (1)
282valueParameterName:=StringConstants.WithEventsValueParameterName)
Symbols\Source\SynthesizedMyGroupCollectionPropertyAccessorSymbol.vb (4)
193Dim params() As ParameterSymbol = {SynthesizedParameterSymbol.CreateSetAccessorValueParameter(Me, [property], StringConstants.ValueParameterName)} 236Return "Set(ByVal " & StringConstants.ValueParameterName & " As " & targetTypeName & ")" & vbCrLf & 237"If " & StringConstants.ValueParameterName & " Is " & fieldName & vbCrLf & 240"If " & StringConstants.ValueParameterName & " IsNot Nothing Then" & vbCrLf &
Symbols\Source\UnboundLambdaParameterSymbol.vb (2)
71Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.ParamArrayKeyword), ERRID.ERR_ParamArrayIllegal1, StringConstants.Lambda) 76Binder.ReportDiagnostic(diagBag, GetModifierToken(syntax.Modifiers, SyntaxKind.OptionalKeyword), ERRID.ERR_OptionalIllegal1, StringConstants.Lambda)
Symbols\SymbolExtensions.vb (1)
103Return StringConstants.UnnamedNamespaceErrName
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
48Me._name = _eventName & StringConstants.EventDelegateSuffix
Symbols\SynthesizedSymbols\SynthesizedOverridingWitheventsProperty.vb (1)
66valueParameterName:=StringConstants.WithEventsValueParameterName)