ICSharpCode.NRefactory.CSharp.CSharpOutputVisitor.IsObjectOrCollectionInitializer C# (CSharp) Метод

IsObjectOrCollectionInitializer() защищенный Метод

protected IsObjectOrCollectionInitializer ( AstNode node ) : bool
node AstNode
Результат bool
		protected bool IsObjectOrCollectionInitializer(AstNode node)
		{
			if (!(node is ArrayInitializerExpression)) {
				return false;
			}
			if (node.Parent is ObjectCreateExpression) {
				return node.Role == ObjectCreateExpression.InitializerRole;
			}
			if (node.Parent is NamedExpression) {
				return node.Role == Roles.Expression;
			}
			return false;
		}
		
CSharpOutputVisitor