diff --git a/compiler/src/dmd/expression.d b/compiler/src/dmd/expression.d index 18edbd7394..e2ef22bee8 100644 --- a/compiler/src/dmd/expression.d +++ b/compiler/src/dmd/expression.d @@ -238,17 +238,6 @@ bool isNeedThisScope(Scope* sc, Declaration d) return true; } -/****************************** - * check e is exp.opDispatch!(tiargs) or not - * It's used to switch to UFCS the semantic analysis path - */ -bool isDotOpDispatch(Expression e) -{ - if (auto dtie = e.isDotTemplateInstanceExp()) - return dtie.ti.name == Id.opDispatch; - return false; -} - /**************************************** * Expand tuples in-place. * diff --git a/compiler/src/dmd/expressionsem.d b/compiler/src/dmd/expressionsem.d index f4e2c36f27..99784b7b24 100644 --- a/compiler/src/dmd/expressionsem.d +++ b/compiler/src/dmd/expressionsem.d @@ -482,6 +482,18 @@ private Expression searchUFCS(Scope* sc, UnaExp ue, Identifier ident) } } +/****************************** + * check e is exp.opDispatch!(tiargs) or not + * It's used to switch to UFCS the semantic analysis path + */ +private bool isDotOpDispatch(Expression e) +{ + if (auto dtie = e.isDotTemplateInstanceExp()) + return dtie.ti.name == Id.opDispatch; + return false; +} + + /****************************** * Pull out callable entity with UFCS. */