예제 #1
0
 private void MarkImportDirective(CSharpSyntaxNode directive, bool callerIsSemanticModel)
 {
     if (directive != null && this.compilation != null && !callerIsSemanticModel)
     {
         compilation.MarkImportDirectiveAsUsed(directive);
     }
 }
예제 #2
0
 private static void MarkImportDirective(CSharpCompilation compilation, CSharpSyntaxNode directive, bool callerIsSemanticModel)
 {
     Debug.Assert(compilation != null); // If any directives are used, then there must be a compilation.
     if (directive != null && !callerIsSemanticModel)
     {
         compilation.MarkImportDirectiveAsUsed(directive);
     }
 }
예제 #3
0
파일: Imports.cs 프로젝트: Beaker73/roslyn
 private static void MarkImportDirective(CSharpCompilation compilation, CSharpSyntaxNode directive, bool callerIsSemanticModel)
 {
     if (directive != null && compilation != null && !callerIsSemanticModel)
     {
         compilation.MarkImportDirectiveAsUsed(directive);
     }
 }