mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
The following environment variables are no longer supported: ``` ODASA_BUILD_ERROR_DIR ODASA_CSHARP_LAYOUT ODASA_SNAPSHOT SEMMLE_DIST SEMMLE_EXTRACTOR_OPTIONS SEMMLE_PLATFORM_TOOLS SEMMLE_PRESERVE_SYMLINKS SOURCE_ARCHIVE TRAP_FOLDER ```
32 lines
999 B
C#
32 lines
999 B
C#
using Microsoft.CodeAnalysis.CSharp;
|
|
using System.Collections.Generic;
|
|
using Semmle.Util.Logging;
|
|
|
|
namespace Semmle.Extraction.CSharp
|
|
{
|
|
public class StandaloneAnalyser : Analyser
|
|
{
|
|
public StandaloneAnalyser(IProgressMonitor pm, ILogger logger, bool addAssemblyTrapPrefix, PathTransformer pathTransformer)
|
|
: base(pm, logger, addAssemblyTrapPrefix, pathTransformer)
|
|
{
|
|
}
|
|
|
|
public void Initialize(CSharpCompilation compilationIn, CommonOptions options)
|
|
{
|
|
compilation = compilationIn;
|
|
extractor = new StandaloneExtractor(Logger, PathTransformer, options);
|
|
this.options = options;
|
|
LogExtractorInfo(Extraction.Extractor.Version);
|
|
SetReferencePaths();
|
|
}
|
|
|
|
#nullable disable warnings
|
|
|
|
public IEnumerable<string> MissingTypes => extractor.MissingTypes;
|
|
|
|
public IEnumerable<string> MissingNamespaces => extractor.MissingNamespaces;
|
|
|
|
#nullable restore warnings
|
|
}
|
|
}
|