Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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)));
 }
Beispiel #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);
 }
        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);
        }
Beispiel #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;
 }
 public SymbolComparer(MatchSymbols matcher)
 {
     _matcher = matcher;
 }
Beispiel #10
0
 public SymbolComparer(MatchSymbols matcher)
 {
     this.matcher = matcher;
 }