mirror of
https://github.com/Cekis/SWG-ScriptConverter.git
synced 2026-01-16 22:04:29 -05:00
20 lines
463 B
C#
20 lines
463 B
C#
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.Linq;
|
|
using ScriptConverter.Ast.Declarations;
|
|
|
|
namespace ScriptConverter.Ast
|
|
{
|
|
class Document
|
|
{
|
|
public ReadOnlyCollection<Declaration> Declarations { get; private set; }
|
|
|
|
public Document(IEnumerable<Declaration> declarations)
|
|
{
|
|
Declarations = declarations
|
|
.ToList()
|
|
.AsReadOnly();
|
|
}
|
|
}
|
|
}
|