Example #1
0
            public void Analyze(NamedActualParam /*!*/ node, Analyzer /*!*/ analyzer, DType /*!*/ propertiesDeclarer)
            {
                // TODO: Named parameters can target the non-static, public, and read-write fields
                // or properties of the attribute class

                bool visibility_check;

                if (!propertiesDeclarer.IsUnknown)
                {
                    property = analyzer.ResolveProperty(propertiesDeclarer, node.Name, node.Span, false, null, null, out visibility_check);
                }

                node.expression = node.Expression.Analyze(analyzer, ExInfoFromParent.DefaultExInfo).Literalize();
            }
Example #2
0
 public override void VisitNamedActualParam(NamedActualParam x)
 {
     throw new NotImplementedException();
 }
Example #3
0
 /// <summary>
 /// Visit named actual parameter expression.
 /// </summary>
 /// <param name="x"></param>
 virtual public void VisitNamedActualParam(NamedActualParam x)
 {
     VisitElement(x.Expression);
 }
Example #4
0
 public static void Analyze(this NamedActualParam /*!*/ node, Analyzer /*!*/ analyzer, DType /*!*/ propertiesDeclarer)
 {
     node.NodeCompiler <INamedActualParamCompiler>().Analyze(node, analyzer, propertiesDeclarer);
 }
Example #5
0
 public static DProperty GetProperty(this NamedActualParam node)
 {
     return(node.NodeCompiler <INamedActualParamCompiler>().Property);
 }