提交 257f861b 编写于 作者: D Dustin Campbell 提交者: Tomas Matousek

Add comment to better describe algorithm

上级 35f462c8
......@@ -147,10 +147,14 @@ private static bool RemovalMayIntroduceInterpolationAmbiguity(ParenthesizedExpre
return false;
}
// In order determine whether removing this parenthesized expression will introduce a
// parsing ambiguity, we must dig into the child tokens and nodes to determine whether
// they include any : or :: tokens. If they do, we can't remove the parentheses because
// the parser would assume that the first : would begin the format clause of the interpolation.
var stack = s_nodeStackPool.AllocateAndClear();
try
{
stack.Push(node.Expression);
while (stack.Count > 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册