Example #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);
 }
Example #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);
 }
Example #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);
 }
 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)));
 }
Example #5
0
 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);
 }
Example #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);
        }
Example #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);
        }
 public SymbolComparer(MatchSymbols matcher, DeepTranslator deepTranslatorOpt)
 {
     Debug.Assert(matcher != null);
     _matcher           = matcher;
     _deepTranslatorOpt = deepTranslatorOpt;
 }
Example #9
0
 public SymbolComparer(MatchSymbols matcher)
 {
     _matcher = matcher;
 }
Example #10
0
 public SymbolComparer(MatchSymbols matcher)
 {
     this.matcher = matcher;
 }