Esempio n. 1
0
 public override ImmutableArray <CSharpAttributeData> GetAttributes()
 {
     return(this.RetargetingTranslator.GetRetargetedAttributes(
                _underlyingMethod.GetAttributes(),
                ref _lazyCustomAttributes
                ));
 }
        public override void VisitMethod(MethodSymbol method)
        {
            var previousContext = _nullableContext;

            _nullableContext = GetNullableContextAttribute(method.GetAttributes()) ?? _nullableContext;

            base.VisitMethod(method);

            _nullableContext = previousContext;
        }
Esempio n. 3
0
        public override void VisitMethod(MethodSymbol method)
        {
            var previousContext = _nullableContext;

            _nullableContext = GetNullableContextAttribute(method.GetAttributes()) ?? _nullableContext;

            ReportSymbol(method);
            VisitList(method.TypeParameters);
            VisitList(method.Parameters);

            _nullableContext = previousContext;
        }