6 implementations of MetadataToken
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218public int MetadataToken => 0;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\PreprocessingSymbol.cs (1)
106int ISymbol.MetadataToken => 0;
Symbols\PublicModel\Symbol.cs (1)
203int ISymbol.MetadataToken => UnderlyingSymbol.MetadataToken;
Microsoft.CodeAnalysis.Features (1)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
69public int MetadataToken => _symbol.MetadataToken;
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
69Public Overridable ReadOnly Property MetadataToken As Integer Implements ISymbol.MetadataToken, ISymbolInternal.MetadataToken
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationSymbol.cs (1)
218public int MetadataToken => 0;
12 references to MetadataToken
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Symbols\Metadata\PE\LoadingMetadataTokens.cs (1)
105Assert.Equal(0, assembly.MetadataToken);
Microsoft.CodeAnalysis.Features (3)
MetadataAsSource\AbstractMetadataAsSourceService.AbstractWrappedSymbol.cs (1)
69public int MetadataToken => _symbol.MetadataToken;
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (2)
122var handle = MetadataTokens.EntityHandle(symbolToFind.MetadataToken); 171handle = MetadataTokens.EntityHandle(newSymbol.MetadataToken);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Symbol.vb (1)
69Public Overridable ReadOnly Property MetadataToken As Integer Implements ISymbol.MetadataToken, ISymbolInternal.MetadataToken
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
SymbolsTests\Metadata\PE\LoadingMetadataTokens.vb (1)
99Assert.Equal(0, assembly.MetadataToken)
SemanticSearch.BuildTask (6)
GenerateFilteredReferenceAssembliesTask.cs (6)
141filter: s => s is { MetadataToken: not 0, DeclaredAccessibility: Accessibility.Public or Accessibility.Protected or Accessibility.ProtectedOrInternal }); 354GetAllMembers(compilation, types, methods, fields, filter: s => s.MetadataToken != 0); 371types.OrderBy(t => t.MetadataToken).ToImmutableArray(), 378methods.OrderBy(t => t.MetadataToken).ToImmutableArray(), 385fields.OrderBy(t => t.MetadataToken).ToImmutableArray(), 415=> (symbolIndex < symbols.Length && symbols[symbolIndex].MetadataToken == MetadataTokens.GetToken(handle)) ? symbols[symbolIndex++] : null;