Exemple #1
0
 public override void OnMemberReferenceExpression(MemberReferenceExpression node)
 {
     if (_capturedVariables.TryGetValue(node.ToString(), out var capturedValue))
     {
         node.ParentNode.Replace(node, capturedValue);
     }
 }
Exemple #2
0
        public override void OnMemberReferenceExpression(MemberReferenceExpression node)
        {
            string name = node.ToString();

            if (name.StartsWith("@"))
            {
                ReplaceWithComponentReference(node, name);
                return;
            }

            base.OnMemberReferenceExpression(node);
        }
Exemple #3
0
        public override void OnMemberReferenceExpression(MemberReferenceExpression node)
        {
            base.OnMemberReferenceExpression(node);

            if (!_insideExpressionBlock)
            {
                return;
            }

            if (node.Name.StartsWith("$") && node.Target.ToString().StartsWith("$"))
            {
                if (!_capturedParameters.ContainsKey(node.ToString()))
                {
                    _referencedCapturedLocalVariables.Add(node);
                }
            }
        }
Exemple #4
0
 static string CommentMeOut(MemberReferenceExpression mre, object data)
 {
     return string.Format("// {0}", mre.ToString());
 }
Exemple #5
0
 public override void OnMemberReferenceExpression(MemberReferenceExpression node)
 {
     _name = NormalizeName(node.ToString());
     _node = _isAttribute ? CreateAttribute(_name) : new StringLiteralExpression(_name);
 }