private static SyntaxNode GetDefaultEqualityComparer( ISyntaxFactoryService factory, Compilation compilation, ISymbol member) { var equalityComparerType = compilation.EqualityComparerOfTType(); var constructedType = equalityComparerType.Construct(GetType(compilation, member)); return(factory.CreateMemberAccessExpression( factory.CreateTypeReferenceExpression(constructedType), factory.CreateIdentifierName(DefaultName))); }
internal SyntaxNode CreateCharSetArgument(ISyntaxFactoryService syntaxFactoryService, INamedTypeSymbol charSetType) { return syntaxFactoryService.CreateMemberAccessExpression( syntaxFactoryService.CreateTypeReferenceExpression(charSetType), syntaxFactoryService.CreateIdentifierName(UnicodeText)); }
private static SyntaxNode GetDefaultEqualityComparer( ISyntaxFactoryService factory, Compilation compilation, ISymbol member) { var equalityComparerType = compilation.EqualityComparerOfTType(); var constructedType = equalityComparerType.Construct(GetType(compilation, member)); return factory.CreateMemberAccessExpression( factory.CreateTypeReferenceExpression(constructedType), factory.CreateIdentifierName(DefaultName)); }
internal SyntaxNode CreateMarshalAsArgument(ISyntaxFactoryService syntaxFactoryService, INamedTypeSymbol unmanagedType) { return syntaxFactoryService.CreateMemberAccessExpression( syntaxFactoryService.CreateTypeReferenceExpression(unmanagedType), syntaxFactoryService.CreateIdentifierName(LPWStrText)); }