16 overrides of Kind
Microsoft.CodeAnalysis.VisualBasic (16)
Symbols\AliasSymbol.vb (1)
93Public Overrides ReadOnly Property Kind As SymbolKind
Symbols\ArrayTypeSymbol.vb (1)
246Public Overrides ReadOnly Property Kind As SymbolKind
Symbols\AssemblySymbol.vb (1)
168Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\EventSymbol.vb (1)
130Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\FieldSymbol.vb (1)
177Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\LabelSymbol.vb (1)
90Public Overrides ReadOnly Property Kind As SymbolKind
Symbols\MethodSymbol.vb (1)
488Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\ModuleSymbol.vb (1)
108Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\NamedTypeSymbol.vb (1)
659Public Overrides ReadOnly Property Kind As SymbolKind ' Cannot seal this method because of the ErrorSymbol.
Symbols\NamespaceSymbol.vb (1)
130Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\ParameterSymbol.vb (1)
192Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\PreprocessingSymbol.vb (1)
40Public Overrides ReadOnly Property Kind As SymbolKind
Symbols\PropertySymbol.vb (1)
369Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\Source\LocalSymbol.vb (1)
186Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
Symbols\Source\RangeVariableSymbol.vb (1)
34Public Overrides ReadOnly Property Kind As SymbolKind
Symbols\TypeParameterSymbol.vb (1)
140Public NotOverridable Overrides ReadOnly Property Kind As SymbolKind
512 references to Kind
Microsoft.CodeAnalysis.VisualBasic (512)
Analysis\FlowAnalysis\AbstractFlowPass.vb (8)
110Debug.Assert(_info.Symbol.Kind = SymbolKind.Field OrElse 111_info.Symbol.Kind = SymbolKind.Property OrElse 112_info.Symbol.Kind = SymbolKind.Method OrElse 113_info.Symbol.Kind = SymbolKind.Parameter) 239Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).Parameters, ImmutableArray(Of ParameterSymbol).Empty) 253Return Me.symbol.Kind = SymbolKind.Method AndAlso DirectCast(Me.symbol, MethodSymbol).Locations.Length = 1 263Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol), Nothing) 273Return If(Me.symbol.Kind = SymbolKind.Method, DirectCast(Me.symbol, MethodSymbol).ReturnType, Nothing)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
47If v.Exists AndAlso v.Symbol.Kind <> SymbolKind.Field Then
Analysis\FlowAnalysis\DataFlowPass.vb (15)
275If variable IsNot Nothing AndAlso variable.Kind = SymbolKind.Local Then 357If symbol.Kind = SymbolKind.Local AndAlso DirectCast(symbol, LocalSymbol).DeclarationKind = LocalDeclarationKind.AmbiguousLocals Then 373If symbol.Kind = SymbolKind.Local AndAlso DirectCast(symbol, LocalSymbol).DeclarationKind = LocalDeclarationKind.AmbiguousLocals Then 497If symbol.Kind = SymbolKind.Local Then 724If parentSymbol.Kind = SymbolKind.Local AndAlso DirectCast(parentSymbol, LocalSymbol).IsFunctionValue Then 782If parentSymbol.Kind = SymbolKind.Local AndAlso DirectCast(parentSymbol, LocalSymbol).IsFunctionValue Then 838If eventOrProperty Is Nothing OrElse eventOrProperty.Kind <> SymbolKind.Event Then 890Select Case symbol.Kind 905Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 1100Select Case sym.Kind 1156If sym.Kind = SymbolKind.Parameter Then 1162If sym.Kind = SymbolKind.RangeVariable Then 1167Debug.Assert(sym.Kind = SymbolKind.Local OrElse sym.Kind = SymbolKind.Field) 1174If sym.Kind = SymbolKind.Local Then
Analysis\FlowAnalysis\DataFlowsInWalker.vb (4)
35If var.Kind <> SymbolKind.Local OrElse Not DirectCast(var, LocalSymbol).IsStatic Then 113Debug.Assert(local.Kind <> SymbolKind.Field OrElse boundFieldAccess IsNot Nothing) 116Debug.Assert(local.Kind <> SymbolKind.RangeVariable) 118If local.Kind = SymbolKind.Field Then
Analysis\FlowAnalysis\DataFlowsOutWalker.vb (8)
46If var.Kind <> SymbolKind.Local OrElse Not DirectCast(var, LocalSymbol).IsStatic Then 72If Not Me.State.IsAssigned(slot) AndAlso variable.Kind <> SymbolKind.RangeVariable AndAlso 73(variable.Kind <> SymbolKind.Local OrElse Not DirectCast(variable, LocalSymbol).IsStatic) Then 147Debug.Assert(local.Kind <> SymbolKind.Field OrElse boundFieldAccess IsNot Nothing) 149If Not _dataFlowsOut.Contains(local) AndAlso local.Kind <> SymbolKind.RangeVariable AndAlso Not IsInside Then 150If local.Kind = SymbolKind.Field Then 177Dim isByRefParameter As Boolean = variable.Kind = SymbolKind.Parameter AndAlso DirectCast(variable, ParameterSymbol).IsByRef 178Dim isStaticLocal As Boolean = variable.Kind = SymbolKind.Local AndAlso DirectCast(variable, LocalSymbol).IsStatic
Analysis\FlowAnalysis\DefinitelyAssignedWalker.vb (1)
76symbol.Kind <> SymbolKind.Field Then
Analysis\FlowAnalysis\ReadWriteWalker.vb (2)
102ElseIf variable.Kind <> SymbolKind.RangeVariable Then 158Select Case variable.Kind
Analysis\FlowAnalysis\UnassignedVariablesWalker.vb (2)
42Debug.Assert(local.Kind <> SymbolKind.Field OrElse boundFieldAccess IsNot Nothing) 44If local.Kind = SymbolKind.Field Then
Analysis\IteratorAndAsyncAnalysis\IteratorAndAsyncCaptureWalker.vb (8)
51Debug.Assert(info.Symbol.Kind = SymbolKind.Method) 96If symbol.Kind = SymbolKind.Parameter Then 101If symbol.Kind = SymbolKind.Local Then 132Dim type As TypeSymbol = If(variable.Kind = SymbolKind.Local, TryCast(variable, LocalSymbol).Type, TryCast(variable, ParameterSymbol).Type) 163If symbol.Kind = SymbolKind.Field Then 174ElseIf symbol.Kind = SymbolKind.Parameter OrElse symbol.Kind = SymbolKind.Local Then 198Select Case symbol.Kind
Binding\Binder.vb (3)
399Select Case containingMember.Kind 517If Not candidate.IsShared OrElse candidate.Kind <> SymbolKind.Property Then 955symbol.Kind <> SymbolKind.Property AndAlso
Binding\Binder_Attributes.vb (1)
459Select Case sym.Kind
Binding\Binder_Constraints.vb (4)
18Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method)) 48Debug.Assert((containingSymbol.Kind = SymbolKind.NamedType) OrElse (containingSymbol.Kind = SymbolKind.Method))
Binding\Binder_Delegates.vb (1)
943If sym.Kind = SymbolKind.Event Then
Binding\Binder_Expressions.vb (13)
1906Select Case containingMember.Kind 1924Throw ExceptionUtilities.UnexpectedValue(containingMember.Kind) 2236Select Case containingMember.Kind 2584Select Case member.Kind 2722Select Case leftSymbol.Kind 3424If candidate.Kind = SymbolKind.Namespace AndAlso 3439If candidate Is Nothing OrElse candidate.Kind = SymbolKind.ErrorType Then 3515Select Case member.Kind 3539Throw ExceptionUtilities.UnexpectedValue(member.Kind) 4005Select Case s.Kind 4629Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsAsync 4633Return ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(ContainingMember, MethodSymbol).IsIterator 4960ElseIf ContainingMember.Kind = SymbolKind.Method Then
Binding\Binder_Invocation.vb (7)
58If Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.Constructor Then 896If methodOrProperty.Kind = SymbolKind.Method Then 1730If underlyingSymbol.Kind = SymbolKind.Method Then 2272Debug.Assert(candidate.UnderlyingSymbol.Kind = SymbolKind.Method) 2290Dim candidateIsAProperty As Boolean = (candidateSymbol.Kind = SymbolKind.Property) 2691Dim candidateIsAProperty As Boolean = (candidate.Candidate.UnderlyingSymbol.Kind = SymbolKind.Property) 3126Select Case container.Kind
Binding\Binder_Lookup.vb (9)
130If options = LookupOptions.LabelsOnly AndAlso sym.Kind = SymbolKind.Label Then 149If sym.Kind = SymbolKind.Local AndAlso DirectCast(sym, LocalSymbol).IsFunctionValue Then 167If unwrappedSym.Kind = SymbolKind.NamedType AndAlso unwrappedSym.EmbeddedSymbolKind = EmbeddedSymbolKind.EmbeddedAttribute AndAlso 180Select Case sym.Kind 244ElseIf sym.Kind = SymbolKind.Method Then 252If unwrappedSym.Kind = SymbolKind.Method AndAlso unwrappedSym.ContainingSymbol IsNot Nothing Then 289sym.Kind <> SymbolKind.Method Then 1594If (symbol.Kind = kind) = leaveInsteadOfRemoving Then 1758If leaveEventsOnly.HasValue AndAlso (newSymbol.Kind = SymbolKind.Event) <> leaveEventsOnly.Value Then
Binding\Binder_ObjectInitializer.vb (1)
898Return y.Kind = SymbolKind.Method
Binding\Binder_Statements.vb (16)
1006ElseIf Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).IsGenericMethod Then 1826Debug.Assert(symbol.Kind = SymbolKind.Local OrElse symbol.Kind = SymbolKind.RangeVariable OrElse 1827(symbol.Kind = SymbolKind.Parameter AndAlso 1854Select Case altSymbol.Kind 1856If symbol.Kind = SymbolKind.Parameter Then 1858ElseIf symbol.Kind <> SymbolKind.RangeVariable Then 1870If symbol.Kind = SymbolKind.Parameter Then 1872ElseIf symbol.Kind <> SymbolKind.RangeVariable Then 1908If symbol.Kind = SymbolKind.Parameter Then 1910ElseIf symbol.Kind <> SymbolKind.RangeVariable Then 5041Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5052Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5082Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5150Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod) 5162Debug.Assert(Me.ContainingMember.Kind = SymbolKind.Method AndAlso DirectCast(Me.ContainingMember, MethodSymbol).MethodKind = MethodKind.LambdaMethod)
Binding\Binder_Symbols.vb (5)
231If symbol IsNot Nothing AndAlso symbol.Kind = SymbolKind.Alias Then 278If sym.Kind = SymbolKind.Alias Then 567lookupResult.SingleSymbol.Kind = SymbolKind.Alias Then 717While currentSymbol IsNot Nothing AndAlso currentSymbol.Kind = SymbolKind.NamedType 992If lookupResult.HasSingleSymbol AndAlso lookupResult.SingleSymbol.Kind = SymbolKind.NamedType Then
Binding\Binder_Utils.vb (1)
862Debug.Assert(Not (container.Kind = SymbolKind.Method AndAlso DirectCast(container, MethodSymbol).MethodKind = MethodKind.DelegateInvoke))
Binding\BinderBuilder.vb (4)
275Select Case target.Kind 424Debug.Assert((fieldOrProperty.Kind = SymbolKind.Field) OrElse (fieldOrProperty.Kind = SymbolKind.Property)) 430If fieldOrProperty.Kind = SymbolKind.Field Then
Binding\DeclarationInitializerBinder.vb (5)
40Debug.Assert((symbol.Kind = SymbolKind.Field) OrElse (symbol.Kind = SymbolKind.Property) OrElse (symbol.Kind = SymbolKind.Parameter)) 41Debug.Assert(additionalSymbols.All(Function(s) s.Kind = symbol.Kind AndAlso (s.Kind = SymbolKind.Field OrElse s.Kind = SymbolKind.Property))) 42Debug.Assert(symbol.Kind <> SymbolKind.Parameter OrElse additionalSymbols.IsEmpty)
Binding\DocumentationCommentBinder.vb (3)
51Debug.Assert(binderContainingMember.Kind = SymbolKind.Namespace) 185Select Case sym.Kind 204Select Case sym.Kind
Binding\DocumentationCommentCrefBinder.vb (8)
118Select Case candidateSymbol.Kind 225If result IsNot Nothing AndAlso result.Kind = SymbolKind.Alias AndAlso Not preserveAliases Then 383Select Case symbol.Kind 680If singleSymbol.Kind = SymbolKind.Alias Then 693If containingSymbol.Kind <> SymbolKind.NamedType Then 706If containingSymbol.Kind = SymbolKind.NamedType Then 760Select Case containingSymbol.Kind 849Select Case symbol.Kind
Binding\DocumentationCommentCrefBinder_Compat.vb (3)
175Select Case containingSymbol.Kind 394Select Case genericSymbol.Kind 410Throw ExceptionUtilities.UnexpectedValue(genericSymbol.Kind)
Binding\DocumentationCommentParamBinder.vb (1)
27Select Case Me.CommentedSymbol.Kind
Binding\DocumentationCommentTypeParamBinder.vb (1)
40Select Case Me.CommentedSymbol.Kind
Binding\DocumentationCommentTypeParamRefBinder.vb (1)
47If symbol.Kind = SymbolKind.TypeParameter Then
Binding\ImportedTypesAndNamespacesMembersBinder.vb (1)
71currentResult.SingleSymbol.Kind = SymbolKind.Namespace AndAlso
Binding\InitializerSemanticModel.vb (3)
45If Me.MemberSymbol.Kind = SymbolKind.Field Then 101Select Case Me.MemberSymbol.Kind 158Throw ExceptionUtilities.UnexpectedValue(Me.MemberSymbol.Kind)
Binding\LookupResult.vb (12)
509Return sym1.Kind = sym2.Kind AndAlso sym1.IsOverloadable AndAlso sym2.IsOverloadable 740If symbol1.Kind <> SymbolKind.Field OrElse symbol2.Kind <> SymbolKind.Field OrElse symbol1.ContainingType.TypeKind <> TypeKind.Enum Then 876If sym.Kind = SymbolKind.Namespace Then 920Debug.Assert(Me.Symbols(0).Kind <> SymbolKind.Namespace OrElse other.Symbol.Kind <> SymbolKind.Namespace) ' namespaces are supposed to be merged 926Debug.Assert(candidate.Kind <> SymbolKind.Namespace OrElse other.Symbol.Kind <> SymbolKind.Namespace) ' namespaces are supposed to be merged 956Debug.Assert(first.Kind <> SymbolKind.Namespace OrElse second.Kind <> SymbolKind.Namespace) ' namespaces are supposed to be merged 967If first.Kind = SymbolKind.Namespace Then 973ElseIf second.Kind = SymbolKind.Namespace Then 993Debug.Assert(type.Kind = SymbolKind.NamedType)
BoundTree\BoundExpressionExtensions.vb (1)
620If symbol.Kind = SymbolKind.Namespace AndAlso DirectCast(symbol, NamespaceSymbol).NamespaceKind = NamespaceKindNamespaceGroup Then
Compilation\ClsComplianceChecker.vb (40)
290Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse symbol.Kind = SymbolKind.Field OrElse symbol.Kind = SymbolKind.Property OrElse symbol.Kind = SymbolKind.Event OrElse symbol.Kind = SymbolKind.Method) 305If symbol.Kind = SymbolKind.NamedType Then 310ElseIf symbol.Kind = SymbolKind.Event Then 327ElseIf symbol.IsMustOverride AndAlso symbol.Kind <> SymbolKind.NamedType Then 415Select Case symbol.Kind 429Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 520Dim isMethodOrProperty As Boolean = symbol.Kind = SymbolKind.Method OrElse symbol.Kind = SymbolKind.Property 527If symbol.Kind = other.Kind AndAlso Not symbol.IsAccessor() AndAlso Not other.IsAccessor() AndAlso SignaturesCollide(symbol, other) Then 546If symbol.Kind = SymbolKind.Namespace Then 571If symbol.Kind = SymbolKind.Namespace Then 657Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse Not (TypeOf symbol Is TypeSymbol), "Type kinds without declarations are handled elsewhere.") 659Debug.Assert(symbol.Kind <> If(Me._compilation.Options.OutputKind = OutputKind.NetModule, SymbolKind.Assembly, SymbolKind.NetModule) OrElse 660(symbol.Kind = SymbolKind.Assembly AndAlso Me._compilation.Assembly IsNot symbol), 663If symbol.Kind = SymbolKind.Namespace Then 666ElseIf symbol.Kind = SymbolKind.Method Then 675Debug.Assert(symbol.Kind <> SymbolKind.Alias) 676Debug.Assert(symbol.Kind <> SymbolKind.Label) 677Debug.Assert(symbol.Kind <> SymbolKind.Namespace) 678Debug.Assert(symbol.Kind <> SymbolKind.Parameter) 679Debug.Assert(symbol.Kind <> SymbolKind.RangeVariable) 689ElseIf symbol.Kind = SymbolKind.Assembly OrElse symbol.Kind = SymbolKind.NetModule Then 695Select Case (symbol.Kind) 708Debug.Assert(symbol.Kind <> SymbolKind.Assembly) 709Debug.Assert(symbol.Kind <> SymbolKind.NetModule) 731If symbol.IsFromCompilation(Me._compilation) OrElse symbol.Kind <> SymbolKind.NamedType Then 826Debug.Assert(symbol.Kind = SymbolKind.ErrorType) 845Return symbol.Kind = SymbolKind.NamedType AndAlso (DirectCast(symbol, NamedTypeSymbol)).IsImplicitClass 874Debug.Assert(x.Kind = y.Kind) 921Select Case (symbol.Kind) 927Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 943Select Case (symbol.Kind) 949Throw ExceptionUtilities.UnexpectedValue(symbol.Kind)
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (4)
431needDiagnostic = bindResult(0).Kind <> SymbolKind.TypeParameter 716Select Case symbol.Kind 754Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 765Select Case sym.Kind
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (3)
97Select Case symbol.Kind 147Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 654If symbol.Kind = SymbolKind.TypeParameter Then
Compilation\DocumentationComments\DocumentationCommentCompiler.vb (5)
117Debug.Assert(symbol.Kind = SymbolKind.Event OrElse 118symbol.Kind = SymbolKind.Field OrElse 119symbol.Kind = SymbolKind.Method OrElse 120symbol.Kind = SymbolKind.NamedType OrElse 121symbol.Kind = SymbolKind.Property)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
189If symbol.Kind = SymbolKind.TypeParameter Then
Compilation\MethodCompiler.vb (4)
137If symbol.Kind = SymbolKind.Method AndAlso symbol.IsImplicitlyDeclared AndAlso 390If symbol.Kind = SymbolKind.NamedType Then 397If symbol.Kind = SymbolKind.Method Then 864If member.Kind = SymbolKind.Method Then
Compilation\SemanticModel.vb (14)
446Debug.Assert(item.Kind <> SymbolKind.Namespace) 463Debug.Assert(item.Kind <> SymbolKind.Namespace) 479Debug.Assert(item.Kind <> SymbolKind.Namespace) 1212Select Case containingMember.Kind 1536ElseIf symbol.Kind = SymbolKind.Namespace AndAlso DirectCast(symbol, NamespaceSymbol).NamespaceKind = NamespaceKindNamespaceGroup Then 1608Debug.Assert(item.Kind <> SymbolKind.Namespace OrElse DirectCast(item, NamespaceSymbol).NamespaceKind <> NamespaceKindNamespaceGroup) 1655Debug.Assert(item.Kind <> SymbolKind.Namespace) 1688Debug.Assert(item.Kind <> SymbolKind.Namespace OrElse DirectCast(item, NamespaceSymbol).NamespaceKind <> NamespaceKindNamespaceGroup) 1721Debug.Assert(item.Kind <> SymbolKind.Namespace OrElse DirectCast(item, NamespaceSymbol).NamespaceKind <> NamespaceKindNamespaceGroup) 1748Debug.Assert(item.Kind <> SymbolKind.Namespace) 1987ElseIf result.HasSingleSymbol AndAlso result.SingleSymbol.Kind = SymbolKind.Namespace AndAlso 2855If symbol.Kind = SymbolKind.Method Then 2857ElseIf symbol.Kind = SymbolKind.Property Then 3627Return String.Format("{0}: {1} {2} at {3}", Me.SyntaxTree.FilePath, symbol.Kind.ToString(), symbol.Name, position)
Compilation\SyntaxTreeSemanticModel.vb (3)
525Select Case resultSymbol.Kind 617If symbol.Kind = SymbolKind.TypeParameter Then 646If resultSymbol.Kind = SymbolKind.Namespace AndAlso
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.vb (3)
110If containingSymbol.Kind = SymbolKind.NamedType Then 120ElseIf containingSymbol.Kind = SymbolKind.Method Then 123Throw ExceptionUtilities.UnexpectedValue(containingSymbol.Kind)
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (6)
224Select Case otherContainer.Kind 232Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind) 286Select Case otherContainer.Kind 306Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind) 329Select Case otherContainer.Kind 338Throw ExceptionUtilities.UnexpectedValue(otherContainer.Kind)
Emit\NamedTypeSymbolAdapter.vb (5)
282If member.Kind = SymbolKind.Method Then 476If member.Kind = SymbolKind.Method Then 908If member.Kind = SymbolKind.Event Then 980If member.Kind = SymbolKind.Method Then 997If member.Kind = SymbolKind.Property Then
Emit\NoPia\EmbeddedTypesManager.vb (1)
224If member.Kind <> SymbolKind.NamedType Then
Emit\SymbolAdapter.vb (2)
80Debug.Assert(Me.Kind <> SymbolKind.Assembly) 120If Me.Kind = SymbolKind.Assembly Then
Emit\SymbolTranslator.vb (1)
461Return container.Kind = SymbolKind.Method AndAlso (DirectCast(container, MethodSymbol)).IsGenericMethod OrElse
Emit\TypeParameterSymbolAdapter.vb (5)
63If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.Method Then 74If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.Method Then 92If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.NamedType Then 104If AdaptedTypeParameterSymbol.ContainingSymbol.Kind = SymbolKind.NamedType Then 144Dim kind As SymbolKind = AdaptedTypeParameterSymbol.ContainingSymbol.Kind
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
617Debug.Assert(leftSymbol.Kind = SymbolKind.Field OrElse leftSymbol.Kind = SymbolKind.Property) 619Dim memberRef As BoundExpression = If(leftSymbol.Kind = SymbolKind.Field, 626If(leftSymbol.Kind = SymbolKind.Field,
Lowering\LambdaRewriter\LambdaRewriter.Analysis.vb (1)
409If variableOrParameter.Kind = SymbolKind.Local Then
Lowering\LambdaRewriter\LambdaRewriter.vb (5)
269Debug.Assert(captured.Kind <> SymbolKind.Local OrElse 563If _innermostFramePointer.Kind = SymbolKind.Parameter AndAlso _topLevelMethod.MethodKind = MethodKind.Constructor AndAlso 596If variable.Kind <> SymbolKind.Local Then 645Select Case originalSymbol.Kind 666Throw ExceptionUtilities.UnexpectedValue(originalSymbol.Kind)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.vb (2)
201(fromMember.Kind = SymbolKind.Field OrElse (fromMember.Kind = SymbolKind.Method AndAlso
Lowering\LocalRewriter\LocalRewriter_FieldOrPropertyInitializer.vb (2)
79If symbol.Kind = SymbolKind.Field Then 102If symbol.Kind = SymbolKind.Field Then
Lowering\StateMachineRewriter\StateMachineRewriter.StateMachineMethodToClassRewriter.vb (2)
315Debug.Assert(localOrParameter.Kind = SymbolKind.Local OrElse localOrParameter.Kind = SymbolKind.Parameter)
Semantics\AccessCheck.vb (7)
102Select Case symbol.Kind 125Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 867If Not (exposingMember.Kind = SymbolKind.NamedType AndAlso IsTypeNestedIn(exposedType, DirectCast(exposingMember, NamedTypeSymbol))) Then 871Debug.Assert(exposingMember.Kind = SymbolKind.NamedType) 993Debug.Assert(member.Kind <> SymbolKind.Namespace, "How can a Member be a namespace ?") 998If member.Kind = SymbolKind.NamedType Then 1171If member.Kind = SymbolKind.NamedType Then
Semantics\OverloadResolution.vb (2)
3253If candidateSymbol.Kind = SymbolKind.Method Then 3279Dim candidateIsAProperty As Boolean = (candidate.Candidate.UnderlyingSymbol.Kind = SymbolKind.Property)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType_TemplateSymbol.vb (1)
120If m.Kind = SymbolKind.Field Then
Symbols\Attributes\AttributeData.vb (11)
214Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 284Debug.Assert(targetSymbol.Kind = SymbolKind.Assembly OrElse targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method) 333If targetSymbol.Kind = SymbolKind.NamedType OrElse targetSymbol.Kind = SymbolKind.Method Then 344ElseIf targetSymbol.Kind = SymbolKind.Assembly Then 421If members.Length = 1 AndAlso members(0).Kind = SymbolKind.Property Then 546Select Case target.Kind
Symbols\Attributes\SourceAttributeData.vb (2)
172If parameterType.Kind <> SymbolKind.NamedType AndAlso parameterType.Kind <> SymbolKind.ErrorType Then
Symbols\BaseTypeAnalysis.vb (1)
195If current Is Nothing OrElse current.Kind = SymbolKind.ErrorType Then
Symbols\ConstraintsHelper.vb (2)
438If type.Kind = SymbolKind.NamedType Then 800Select Case constraint.Kind
Symbols\EmbeddedSymbols\EmbeddedSymbolManager.SymbolsCollection.vb (8)
213Select Case symbol.Kind 275Select Case member.Kind 307Debug.Assert(symbol.Kind = SymbolKind.NamedType OrElse 308symbol.Kind = SymbolKind.Property OrElse 309symbol.Kind = SymbolKind.Method OrElse 310symbol.Kind = SymbolKind.Field) 337Select Case member.Kind 354Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\ExtendedErrorTypeSymbol.vb (2)
57candidateSymbols(0).Kind = SymbolKind.Namespace AndAlso 66Debug.Assert(item.Kind <> SymbolKind.Namespace OrElse DirectCast(item, NamespaceSymbol).NamespaceKind <> NamespaceKindNamespaceGroup)
Symbols\MemberSignatureComparer.vb (7)
50If sym1.Kind <> sym2.Kind Then 54Select Case sym1.Kind 71Select Case sym.Kind 80Throw ExceptionUtilities.UnexpectedValue(sym.Kind) 86Select Case sym.Kind 90Debug.Assert(False, "Unexpected symbol kind: " & sym.Kind)
Symbols\MergedNamespaceSymbol.vb (1)
216If (childSym.Kind = SymbolKind.Namespace) Then
Symbols\Metadata\PE\MetadataDecoder.vb (3)
193Select Case this.Kind 232Throw ExceptionUtilities.UnexpectedValue(this.Kind) 277Debug.Assert(newresult Is result OrElse (newresult.Kind = SymbolKind.ErrorType))
Symbols\Metadata\PE\PEMethodSymbol.vb (1)
548If m.Kind <> SymbolKind.Method Then
Symbols\Metadata\PE\PENamedTypeSymbol.vb (9)
173While s.Kind <> SymbolKind.Namespace 389If (Not member.IsShared AndAlso member.Kind = SymbolKind.Field) Then 532If member.Kind <> SymbolKind.Method Then 548If index >= members.Length OrElse members(index).Kind <> SymbolKind.Method Then 569If index = members.Length OrElse members(index).Kind <> SymbolKind.Method Then 922If _container.Kind = SymbolKind.Namespace AndAlso _arity = 0 Then 1103If member.Kind = SymbolKind.Property Then 1549If members(i).Kind = kind Then 1567If member.Kind <> kind Then
Symbols\Metadata\PE\PETypeParameterSymbol.vb (4)
102Return If(Me.ContainingSymbol.Kind = SymbolKind.Method, 186If _containingSymbol.Kind = SymbolKind.Method Then 317Dim typeParameters = If(_containingSymbol.Kind = SymbolKind.Method, 330Dim inherited = (_containingSymbol.Kind = SymbolKind.Method) AndAlso DirectCast(_containingSymbol, MethodSymbol).IsOverrides
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
126Select Case type.Kind
Symbols\MethodSymbol.vb (1)
321If Me.IsAccessor AndAlso Me.AssociatedSymbol.Kind = SymbolKind.Property Then
Symbols\MissingMetadataTypeSymbol.vb (1)
152If symbol.Kind = SymbolKind.Namespace AndAlso
Symbols\MissingNamespaceSymbol.vb (1)
63If _containingSymbol.Kind = SymbolKind.NetModule Then
Symbols\NamedTypeSymbol.vb (4)
306If member.Kind = SymbolKind.Method Then 418If candidate.Kind = SymbolKind.Method Then 426If candidate.Kind = SymbolKind.Method Then 1523If(ContainingSymbol?.Kind = SymbolKind.Namespace, False) AndAlso
Symbols\NamedTypeSymbolExtensions.vb (3)
28If child.Kind = kind Then 59If child.Kind = SymbolKind.Field OrElse child.Kind = SymbolKind.Property Then
Symbols\NamespaceOrTypeSymbol.vb (2)
33Return Kind = SymbolKind.Namespace 203If member.Kind = SymbolKind.Method Then
Symbols\NamespaceSymbol.vb (4)
209If member.Kind = SymbolKind.Namespace Then 402If sym.Kind = SymbolKind.Namespace Then 498If member.Kind = SymbolKind.Method Then 519If member.Kind = SymbolKind.Method Then
Symbols\ObsoleteAttributeHelpers.vb (1)
161If symbol.IsAccessor() AndAlso (DirectCast(symbol, MethodSymbol).AssociatedSymbol).Kind = SymbolKind.Property Then
Symbols\PropertySymbol.vb (1)
215((fromMember.Kind = SymbolKind.Method AndAlso DirectCast(fromMember, MethodSymbol).IsAnyConstructor) OrElse
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
75If s.Kind = SymbolKind.NamedType AndAlso DirectCast(s, NamedTypeSymbol).IsExplicitDefinitionOfNoPiaLocalType Then
Symbols\Retargeting\RetargetingSymbolTranslator.vb (10)
71Dim containingType = If(container.Kind = SymbolKind.Method, 129Debug.Assert(symbol.Kind <> SymbolKind.NamedType OrElse DirectCast(symbol, NamedTypeSymbol).PrimitiveTypeCode = PrimitiveTypeCode.NotPrimitive) 248If type.ContainingSymbol.Kind <> SymbolKind.NamedType AndAlso 547Select Case symbol.Kind 578Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 794If underlyingSymbol.Kind = SymbolKind.Method Then 800Debug.Assert(underlyingSymbol.Kind = SymbolKind.Method) 987If retargetedMember.Kind = SymbolKind.Method Then 1055If retargetedMember.Kind = SymbolKind.Event Then 1105If retargetedMember.Kind = SymbolKind.Property Then
Symbols\Source\ImplementsHelper.vb (14)
25Select Case member.Kind 101If implementingSym.Kind = SymbolKind.Method Then 103ElseIf implementingSym.Kind = SymbolKind.Property Then 124Dim implementingSymIsEvent = (implementingSym.Kind = SymbolKind.Event) 134Debug.Assert(implementedMember.Kind = SymbolKind.Event) 201If implementingSym.Kind = SymbolKind.Event Then 344If coClassContext AndAlso (implementingSym.Kind = SymbolKind.Event) <> (foundMember.Kind = SymbolKind.Event) Then 365ElseIf foundMember.Kind = SymbolKind.Property Then 425Debug.Assert(implementingSym.Kind = implementedSym.Kind) 427Select Case implementingSym.Kind 444Throw ExceptionUtilities.UnexpectedValue(implementingSym.Kind) 470If implementedSym.Kind = SymbolKind.Property Then
Symbols\Source\LambdaSymbol.vb (2)
130Select Case ContainingSymbol.Kind 231Select Case container.Kind
Symbols\Source\LocalSymbol.vb (4)
105Debug.Assert(container.Kind = SymbolKind.Method OrElse 106container.Kind = SymbolKind.Field OrElse 107container.Kind = SymbolKind.Property, 155Debug.Assert((Me.IsFunctionValue AndAlso _container.Kind = SymbolKind.Method AndAlso DirectCast(_container, MethodSymbol).MethodKind = MethodKind.LambdaMethod) OrElse type.Equals(ComputeType()))
Symbols\Source\OverloadingHelper.vb (1)
190Return member.Kind = kind AndAlso Not member.IsAccessor()
Symbols\Source\OverrideHidingHelper.vb (20)
131If sym1.Kind = SymbolKind.Property Then 148Select Case member.Kind 282Select Case hidingMember.Kind 284If hidingMember.IsOverloads AndAlso hiddenMember.Kind = SymbolKind.Method Then 298If hidingMember.IsOverloads AndAlso hiddenMember.Kind = SymbolKind.Property Then 356hiddenMember.Kind <> member.Kind OrElse 358(member.Kind = SymbolKind.Method AndAlso DirectCast(member, MethodSymbol).IsUserDefinedOperator() <> DirectCast(hiddenMember, MethodSymbol).IsUserDefinedOperator()) OrElse 363If member.Kind = SymbolKind.NamedType AndAlso 364hiddenMember.Kind = SymbolKind.NamedType AndAlso 432ElseIf hidingMember.Kind = hiddenMember.Kind AndAlso 433(hidingMember.Kind = SymbolKind.Property OrElse hidingMember.Kind = SymbolKind.Method) AndAlso 492If sym.Kind <> SymbolKind.Method Then 512Select Case sym.Kind 700If overridingSym.Kind = SymbolKind.Property Then 747If sym.Kind = overridingSym.Kind AndAlso 917member.Kind = SymbolKind.Property Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (16)
298If member.Kind <> SymbolKind.NamedType Then 442Select Case member.Kind 665Select Case type.Kind 949Throw ExceptionUtilities.UnexpectedValue(type.Kind) 2367If fieldOrProperty.Kind = SymbolKind.Property Then 2464Select Case symbol.Kind 2487Throw ExceptionUtilities.UnexpectedValue(symbol.Kind) 3100ElseIf ((firstSymbol.Kind <> SymbolKind.Method) AndAlso (Not firstSymbol.IsPropertyAndNotWithEvents)) OrElse 3101(firstSymbol.Kind <> secondSymbol.Kind) Then 3216If member.Kind = SymbolKind.Field Then 3339If Not (_containingSymbol.Kind = SymbolKind.Namespace AndAlso Me.AllowsExtensionMethods() AndAlso Me.AnyMemberHasAttributes) Then 3525If member.Kind <> memberKind OrElse member.IsAccessor OrElse member.IsWithEventsProperty Then 3550If nextMember.Kind <> memberKind OrElse nextMember.IsAccessor OrElse nextMember.IsWithEventsProperty Then 3610If member.Kind <> SymbolKind.Method Then 3738If nextMember.Kind <> SymbolKind.Method Then
Symbols\Source\SourceMemberFieldSymbol.vb (1)
229(varType.Kind = SymbolKind.TypeParameter AndAlso varType.IsReferenceType)) Then
Symbols\Source\SourceMethodSymbol.vb (1)
1786If Me.IsAccessor() AndAlso Me.AssociatedSymbol.Kind = SymbolKind.Event Then
Symbols\Source\SourceModuleSymbol.vb (2)
311Select Case s.Kind 1156Select Case member.Kind
Symbols\Source\SourceNamedTypeSymbol.vb (8)
81If containingSymbol.Kind = SymbolKind.Namespace AndAlso 94If containingSymbol.Kind = SymbolKind.NamedType Then 499Select Case s.Kind 535If s.Kind = SymbolKind.Namespace Then 2236If ContainingSymbol.Kind = SymbolKind.Namespace AndAlso attrData.IsTargetAttribute(AttributeDescription.CaseInsensitiveExtensionAttribute) Then 2362If member.Kind = SymbolKind.Event AndAlso 2436If Not m.IsShared And m.Kind = SymbolKind.Field Then 2609If member.Kind = SymbolKind.Method Then
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (7)
101If m.Kind = SymbolKind.Method Then 374Dim memberKind As SymbolKind = member.Kind 493If target.Kind <> SymbolKind.Property OrElse Not DirectCast(target, PropertySymbol).IsDefault Then 544Select Case member.Kind 631Throw ExceptionUtilities.UnexpectedValue(member.Kind) 1330If attributeSource.Kind = SymbolKind.Method Then 1371If attributeSource.Kind = SymbolKind.Method Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (3)
213If current.Kind = SymbolKind.NamedType Then 227Select Case member.Kind 241Select Case member.Kind
Symbols\Source\SourceParameterSymbol.vb (4)
186If containingSymbol.Kind = SymbolKind.Method AndAlso DirectCast(containingSymbol, MethodSymbol).MethodKind = MethodKind.DeclareMethod Then 202Select Case containingSymbol.Kind 450If container.Kind = SymbolKind.Method Then 495ContainingSymbol.Kind = SymbolKind.Method AndAlso
Symbols\SubstitutedNamedType.vb (4)
361Select Case member.Kind 388Throw ExceptionUtilities.UnexpectedValue(member.Kind) 444Select Case member.Kind 492Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\SubstitutedTypeParameterSymbol.vb (1)
89Return If(_containingSymbol.Kind = SymbolKind.Method,
Symbols\Symbol.vb (10)
207Select Case container.Kind 250Select Case Me.Kind 591Select Case Me.Kind 631Throw ExceptionUtilities.UnexpectedValue(Me.Kind) 657If Me.Kind = SymbolKind.Method Then 735If Me.Kind = SymbolKind.Assembly Then 740Dim [module] = If(Me.Kind = SymbolKind.NetModule, Me, Me.ContainingModule) 881Return String.Format("{0} {1}", Me.Kind, Me.ToDisplayString(SymbolDisplayFormat.TestFormat)) 996Select Case Me.Kind 1321Return Me.Kind
Symbols\Symbol_Attributes.vb (7)
60Select Case Kind 255Dim sourceAssembly = DirectCast(If(Me.Kind = SymbolKind.Assembly, Me, Me.ContainingAssembly), SourceAssemblySymbol) 519Debug.Assert(Me.Kind = SymbolKind.Method OrElse Me.Kind = SymbolKind.Property) 529Me.Kind = SymbolKind.Event AndAlso DirectCast(Me, SourceEventSymbol).AssociatedField IsNot Nothing Then 545If Me.Kind = SymbolKind.Method Then 586Select Case Me.Kind
Symbols\SymbolExtensions.vb (21)
28Select Case target.Kind 80Throw ExceptionUtilities.UnexpectedValue(target.Kind) 100If target.Kind = SymbolKind.Namespace Then 137Dim kind = symbol.Kind 164Select Case sym.Kind 195Select Case sym.Kind 208Select Case sym.Kind 243Return symbol.Kind = SymbolKind.Method AndAlso IsAccessor(DirectCast(symbol, MethodSymbol)) 248Return symbol.Kind = SymbolKind.Property AndAlso DirectCast(symbol, PropertySymbol).IsWithEvents 257Return symbol.Kind = SymbolKind.Property AndAlso Not DirectCast(symbol, PropertySymbol).IsWithEvents 280Return this.Kind = SymbolKind.Method AndAlso DirectCast(this, MethodSymbol).IsReducedExtensionMethod 288Select Case sym.Kind 305Select Case symbol.Kind 321Select Case sym.Kind 331Throw ExceptionUtilities.UnexpectedValue(sym.Kind) 340Select Case sym.Kind 376Return symbol.Kind = SymbolKind.Method AndAlso DirectCast(symbol, MethodSymbol).IsUserDefinedOperator() 404Dim upperLevelType = If(symbol.Kind = SymbolKind.NamedType, DirectCast(symbol, NamedTypeSymbol), symbol.ContainingType) 456While If(member?.Kind = SymbolKind.Method, False) AndAlso DirectCast(member, MethodSymbol).MethodKind = MethodKind.AnonymousFunction 465Select Case member.Kind 477Throw ExceptionUtilities.UnexpectedValue(member.Kind)
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (1)
52$"Container is {Me.ContainingSymbol?.Kind}, TypeParameterKind is {Me.TypeParameterKind}")
Symbols\Tuples\TupleTypeSymbol.vb (5)
661If member.Kind <> SymbolKind.Field Then 708Select Case member.Kind 798Throw ExceptionUtilities.UnexpectedValue(member.Kind) 889Dim kind As SymbolKind = symbol.Kind 916Throw ExceptionUtilities.UnexpectedValue(symbol.Kind)
Symbols\TypeSubstitution.vb (7)
563(targetGenericDefinition.Kind = SymbolKind.Method AndAlso 566Debug.Assert((targetGenericDefinition.Kind = SymbolKind.Method AndAlso 569((targetGenericDefinition.Kind = SymbolKind.NamedType OrElse targetGenericDefinition.Kind = SymbolKind.ErrorType) AndAlso 596If memberDefinition.Kind = SymbolKind.Method Then 758If targetGenericDefinition.Kind = SymbolKind.Method Then 814If targetGenericDefinition.Kind = SymbolKind.Method Then
Symbols\TypeSymbol.vb (2)
378If Me.Kind <> SymbolKind.ErrorType Then 685Select Case interfaceMember.Kind
Symbols\TypeSymbolExtensions.vb (12)
134Return type.Kind = SymbolKind.NamedType AndAlso DirectCast(type, NamedTypeSymbol).IsInterface 158Return type.Kind = SymbolKind.ErrorType 164Return type.Kind = SymbolKind.ArrayType 191type.Kind = SymbolKind.NamedType AndAlso 212type.Kind = SymbolKind.NamedType AndAlso 227Return type.Kind = SymbolKind.TypeParameter 371If this.Kind = SymbolKind.ArrayType Then 381While this.Kind = SymbolKind.ArrayType 490If this.Kind = SymbolKind.TypeParameter Then 497If this.Kind = SymbolKind.NamedType AndAlso Not DirectCast(this, NamedTypeSymbol).IsInterface Then 524If possiblyArrayType.Kind = SymbolKind.ArrayType Then 1234If container.Kind <> SymbolKind.Namespace Then
Symbols\UnboundGenericType.vb (1)
501If member.Kind = SymbolKind.NamedType Then
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
101$"Container is {Me.ContainingSymbol?.Kind}, TypeParameterKind is {Me.TypeParameterKind}")