Boo.Lang.Compiler.TypeSystem.TypeSystemServices.MapToConcreteExpressionTypes C# (CSharp) Method

MapToConcreteExpressionTypes() public method

public MapToConcreteExpressionTypes ( Boo.Lang.Compiler.Ast.ExpressionCollection items ) : void
items Boo.Lang.Compiler.Ast.ExpressionCollection
return void
        public void MapToConcreteExpressionTypes(ExpressionCollection items)
        {
            foreach (Expression item in items)
                GetConcreteExpressionType(item);
        }

Usage Example

Example #1
0
        public ArrayLiteralExpression CreateArray(IType arrayType, ExpressionCollection items)
        {
            if (!arrayType.IsArray)
            {
                throw new ArgumentException(string.Format("'{0}'  is not an array type!", arrayType), "arrayType");
            }
            ArrayLiteralExpression array = new ArrayLiteralExpression();

            array.ExpressionType = arrayType;
            array.Items.Extend(items);
            _tss.MapToConcreteExpressionTypes(array.Items);
            return(array);
        }
TypeSystemServices