internal override bool TryGetThisParameter(out ParameterSymbol thisParameter)
 {
     // Local function symbols have no "this" parameter
     thisParameter = null;
     return(true);
 }
Example #2
0
 /// <returns>
 /// True if this <see cref="MethodSymbol"/> type supports retrieving the this parameter
 /// and false otherwise.  Note that a return value of true does not guarantee a non-null
 /// <paramref name="thisParameter"/> (e.g. fails for static methods).
 /// </returns>
 internal virtual bool TryGetThisParameter(out ParameterSymbol thisParameter)
 {
     thisParameter = null;
     return(false);
 }
Example #3
0
 public ReducedExtensionMethodParameterSymbol(ReducedExtensionMethodSymbol containingMethod, ParameterSymbol underlyingParameter) :
     base(underlyingParameter)
 {
     Debug.Assert(underlyingParameter.Ordinal > 0);
     _containingMethod = containingMethod;
 }
Example #4
0
 public TupleParameterSymbol(Symbol container, ParameterSymbol underlyingParameter)
     : base(underlyingParameter)
 {
     Debug.Assert((object)container != null);
     _container = container;
 }
        protected WrappedParameterSymbol(ParameterSymbol underlyingParameter)
        {
            Debug.Assert((object)underlyingParameter != null);

            this._underlyingParameter = underlyingParameter;
        }