コード例 #1
0
 public SymbolMatcher(
     IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
     SourceAssemblySymbol sourceAssembly,
     Context sourceContext,
     Microsoft.CodeAnalysis.CSharp.Symbols.Metadata.PE.PEAssemblySymbol otherAssembly)
 {
     this.defs    = new MatchDefsToMetadata(sourceContext, otherAssembly);
     this.symbols = new MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, this.defs);
 }
コード例 #2
0
 public CSharpSymbolMatcher(
     IReadOnlyDictionary<AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
     SourceAssemblySymbol sourceAssembly,
     EmitContext sourceContext,
     PEAssemblySymbol otherAssembly)
 {
     this.defs = new MatchDefsToMetadata(sourceContext, otherAssembly);
     this.symbols = new MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly);
 }
コード例 #3
0
 public SymbolMatcher(
     IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
     SourceAssemblySymbol sourceAssembly,
     Context sourceContext,
     SourceAssemblySymbol otherAssembly,
     Context otherContext)
 {
     this.defs    = new MatchDefsToSource(sourceContext, otherContext);
     this.symbols = new MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, this.defs);
 }
コード例 #4
0
 public CSharpSymbolMatcher(
     IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
     SourceAssemblySymbol sourceAssembly,
     EmitContext sourceContext,
     SourceAssemblySymbol otherAssembly,
     EmitContext otherContext,
     ImmutableDictionary <Cci.ITypeDefinition, ImmutableArray <Cci.ITypeDefinitionMember> > otherSynthesizedMembersOpt)
 {
     _defs    = new MatchDefsToSource(sourceContext, otherContext);
     _symbols = new MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, otherSynthesizedMembersOpt, new DeepTranslator(otherAssembly.GetSpecialType(SpecialType.System_Object)));
 }
コード例 #5
0
ファイル: CSharpSymbolMatcher.cs プロジェクト: yonifra/roslyn
 public CSharpSymbolMatcher(
     IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
     SourceAssemblySymbol sourceAssembly,
     EmitContext sourceContext,
     SourceAssemblySymbol otherAssembly,
     EmitContext otherContext,
     ImmutableDictionary <Cci.ITypeDefinition, ImmutableArray <Cci.ITypeDefinitionMember> > otherSynthesizedMembersOpt)
 {
     this.defs    = new MatchDefsToSource(sourceContext, otherContext);
     this.symbols = new MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, otherSynthesizedMembersOpt);
 }
コード例 #6
0
        public CSharpSymbolMatcher(
            IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
            SourceAssemblySymbol sourceAssembly,
            EmitContext sourceContext,
            PEAssemblySymbol otherAssembly)
        {
            _defs = new MatchDefsToMetadata(sourceContext, otherAssembly);

            _symbols = new MatchSymbols(
                anonymousTypeMap,
                sourceAssembly,
                otherAssembly,
                otherSynthesizedMembersOpt: null);
        }
コード例 #7
0
        public CSharpSymbolMatcher(
            IReadOnlyDictionary <AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap,
            IReadOnlyDictionary <SynthesizedDelegateKey, SynthesizedDelegateValue> synthesizedDelegates,
            SourceAssemblySymbol sourceAssembly,
            EmitContext sourceContext,
            PEAssemblySymbol otherAssembly)
        {
            _defs = new MatchDefsToMetadata(sourceContext, otherAssembly);

            _symbols = new MatchSymbols(
                anonymousTypeMap,
                synthesizedDelegates,
                sourceAssembly,
                otherAssembly,
                otherSynthesizedMembers: null,
                deepTranslator: null);
        }
コード例 #8
0
 public SymbolComparer(MatchSymbols matcher, DeepTranslator deepTranslatorOpt)
 {
     Debug.Assert(matcher != null);
     _matcher           = matcher;
     _deepTranslatorOpt = deepTranslatorOpt;
 }
コード例 #9
0
 public SymbolComparer(MatchSymbols matcher)
 {
     _matcher = matcher;
 }
コード例 #10
0
 public SymbolComparer(MatchSymbols matcher)
 {
     this.matcher = matcher;
 }