提交 893a4375 编写于 作者: M Manish Vasani

Fix build errors from merge resolution

上级 530f5a56
......@@ -1361,7 +1361,7 @@ private IForEachLoopOperation CreateBoundForEachStatementOperation(BoundForEachS
var local = (LocalSymbol)locals.Single();
// We use iteration variable type syntax as the underlying syntax node as there is no variable declarator syntax in the syntax tree.
var declaratorSyntax = boundForEachStatement.IterationVariableType.Syntax;
loopControlVariable = new Lazy<IOperation>(() => OperationFactory.CreateVariableDeclaration(local, initializer: null, semanticModel: _semanticModel, syntax: declaratorSyntax));
loopControlVariable = new Lazy<IOperation>(() => new VariableDeclarator(local, initializer: null, semanticModel: _semanticModel, syntax: declaratorSyntax, type: null, constantValue: default, isImplicit: false));
}
else
{
......
......@@ -1141,7 +1141,7 @@ Namespace Microsoft.CodeAnalysis.Operations
Dim localOpt As LocalSymbol = boundForStatement.DeclaredOrInferredLocalOpt
Dim controlVariable As BoundExpression = boundForStatement.ControlVariable
Return If(localOpt IsNot Nothing,
OperationFactory.CreateVariableDeclaration(localOpt, initializer:=Nothing, semanticModel:=_semanticModel, syntax:=controlVariable.Syntax),
New VariableDeclarator(localOpt, initializer:=Nothing, semanticModel:=_semanticModel, syntax:=controlVariable.Syntax, type:=Nothing, constantValue:=Nothing, isImplicit:=boundForStatement.WasCompilerGenerated),
Create(controlVariable))
End Function
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册