예제 #1
0
 public TypeSymbolCollection(ICompilationInfo info, ICompilationLifetime lifetime)
 {
     _sourceCompilation  = info.SourceCompilation as CSharpCompilation ?? throw new NotSupportedException("Source Generator does not support languages other then C#");
     _currentCompilation = _sourceCompilation;
     _ct = lifetime.OnCompilationCancelled;
 }
 public SourceCodeAnalysis(ITypeSymbolProvider provider, ICompilationInfo compilationInfo, ICompilationLifetime lifetime)
 {
     _provider        = provider;
     _compilationInfo = compilationInfo;
     _lifetime        = lifetime;
 }