mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
[expression.d] move isDotOpDispatch
to expressionsem.d
make private (#15685)
This commit is contained in:
parent
147b3707a6
commit
c5c0462953
2 changed files with 12 additions and 11 deletions
|
@ -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.
|
||||
*
|
||||
|
|
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue