コード例 #1
0
        protected WithExternAndUsingAliasesBinder(WithUsingNamespacesAndTypesBinder next)
            : base(next)
        {
#if DEBUG
            Debug.Assert(!next.WithImportChainEntry);
#endif
        }
コード例 #2
0
 internal static WithExternAndUsingAliasesBinder Create(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next)
 {
     return(new FromSyntax(declaringSymbol, declarationSyntax, next));
 }
コード例 #3
0
 internal FromSymbols(ImmutableArray <AliasAndExternAliasDirective> externAliases, ImmutableDictionary <string, AliasAndUsingDirective> usingAliases, WithUsingNamespacesAndTypesBinder next)
     : base(next)
 {
     Debug.Assert(!externAliases.IsDefault);
     _externAliases = externAliases;
     _usingAliases  = usingAliases;
 }
コード例 #4
0
 internal FromSyntax(SourceNamespaceSymbol declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next)
     : base(next)
 {
     Debug.Assert(declarationSyntax.IsKind(SyntaxKind.CompilationUnit) || declarationSyntax.IsKind(SyntaxKind.NamespaceDeclaration));
     _declaringSymbol   = declaringSymbol;
     _declarationSyntax = declarationSyntax;
 }
コード例 #5
0
 internal static WithExternAndUsingAliasesBinder Create(ImmutableArray <AliasAndExternAliasDirective> externAliases, ImmutableDictionary <string, AliasAndUsingDirective> usingAliases, WithUsingNamespacesAndTypesBinder next)
 {
     return(new FromSymbols(externAliases, usingAliases, next));
 }