Exemple #1
0
 public ResElementCtorApp(
     SourceRange range,
     IResTypeExp type,
     IResElementRef element,
     IEnumerable <ResElementCtorArg> args)
     : base(range, type)
 {
     _element = element;
     _args    = args.ToArray();
 }
Exemple #2
0
 public ResEnv NestImplicitFreq(IResElementRef freq)
 {
     return(new ResEnv(
                _context,
                _diagnostics,
                _scope,
                _score,
                freq,
                _disableConversions,
                _baseAttributeType));
 }
Exemple #3
0
        public ResFreqQualType(
            SourceRange range,
            IResElementRef freq,
            IResTypeExp type)
        {
            if (freq == null)
            {
                throw new ArgumentNullException("freq");
            }

            _range = range;
            _freq  = freq;
            _type  = type;
        }
Exemple #4
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;
 }
Exemple #5
0
 private MidType EmitTypeExpImpl(IResElementRef resElement, MidEmitEnv env)
 {
     return((MidType)EmitMemberTerm(resElement.MemberTerm, env));
 }