internal VarInfo CreatePrimitiveTypeVarInfo(Var v, Var newVar) { DebugCheck.NotNull(v); DebugCheck.NotNull(newVar); PlanCompiler.Assert(TypeSemantics.IsScalarType(v.Type), "The current variable should be of primitive or enum type."); PlanCompiler.Assert(TypeSemantics.IsScalarType(newVar.Type), "The new variable should be of primitive or enum type."); VarInfo varInfo = new PrimitiveTypeVarInfo(newVar); m_map.Add(v, varInfo); return(varInfo); }
internal VarInfo CreatePrimitiveTypeVarInfo(Var v, Var newVar) { DebugCheck.NotNull(v); DebugCheck.NotNull(newVar); PlanCompiler.Assert(TypeSemantics.IsScalarType(v.Type), "The current variable should be of primitive or enum type."); PlanCompiler.Assert(TypeSemantics.IsScalarType(newVar.Type), "The new variable should be of primitive or enum type."); VarInfo varInfo = new PrimitiveTypeVarInfo(newVar); m_map.Add(v, varInfo); return varInfo; }