Loading files
// Copyright (c) IxMilia. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Linq;
using IxMilia.Step.Tokens;
namespace IxMilia.Step.Syntax
{
internal class StepComplexItemSyntax : StepItemSyntax
{
public override StepSyntaxType SyntaxType => StepSyntaxType.ComplexItem;
public List<StepSimpleItemSyntax> Items { get; } = new List<StepSimpleItemSyntax>();
public StepComplexItemSyntax(int line, int column, IEnumerable<StepSimpleItemSyntax> items)
: base(line, column)
{
Items = items.ToList();
}
public override IEnumerable<StepToken> GetTokens()
{
return Items.SelectMany(i => i.GetTokens());
}
}
}
366e28f22This file is pinned to the selected release. Download the original to open it in your design tool.