Beispiel #1
0
 public ResEnv(
     ResolveContext context,
     IDiagnosticsSink diagnostics,
     IResScope scope)
     : this(context, diagnostics, scope, null, null, false, null)
 {
 }
Beispiel #2
0
        public static IDiagnosticsSink InsertSink(
            this IDiagnosticsSink sink)
        {
            var subSink = new DiagnosticSink();

            sink.Add(subSink);
            return(subSink);
        }
Beispiel #3
0
 public static void Add(
     this IDiagnosticsSink sink,
     Severity severity,
     SourceRange range,
     string message)
 {
     sink.Add(new Diagnostic(severity, range, message));
 }
Beispiel #4
0
 public static void Add(
     this IDiagnosticsSink sink,
     Severity severity,
     SourceRange range,
     string format,
     params object[] args)
 {
     sink.Add(new Diagnostic(severity, range, string.Format(format, args)));
 }
Beispiel #5
0
 public ResEnv NestDiagnostics(
     IDiagnosticsSink sink)
 {
     return(new ResEnv(
                _context,
                sink,
                _scope,
                _score,
                _implicitFreq,
                _disableConversions,
                _baseAttributeType));
 }
Beispiel #6
0
 public ResEnv(
     ResolveContext context,
     IDiagnosticsSink diagnostics,
     IResScope scope,
     Cell <ResOverloadScore> score,
     IResElementRef implicitFreq,
     bool disableConversions,
     IResTypeExp baseAttributeType)
 {
     _context            = context;
     _diagnostics        = diagnostics;
     _scope              = scope;
     _score              = score;
     _implicitFreq       = implicitFreq;
     _disableConversions = disableConversions;
     _baseAttributeType  = baseAttributeType;
 }