Exemplo n.º 1
0
Arquivo: AST.cs Projeto: almeswe/alm
 public IdentifierDeclaration(Expression type, AssignmentStatement assignment)
 {
     this.SetSourceContext(type, assignment);
     this.AssingningExpression    = assignment;
     this.DeclaringIdentifierType = ((TypeExpression)type).Type;
     this.DeclaringIdentifiers    = this.CreateIdentifierInstances(assignment.AdressorExpressions, ((TypeExpression)type).Type);
     this.AddNode(assignment);
 }
Exemplo n.º 2
0
Arquivo: AST.cs Projeto: almeswe/alm
        private Expression GetExtendedAdressableExpression(Expression expression)
        {
            if (this.OperatorKind == AssignOperator.Assignment)
            {
                return(expression);
            }

            return(new BinaryArithExpression(this.AdressorExpressions[0], AssignmentStatement.ConvertToBinaryArithOperator(this.OperatorKind), expression));
        }