コード例 #1
0
        public LuaCompilationUnitSyntax(string filePath = "")
        {
            FilePath = filePath;
            var info = Assembly.GetExecutingAssembly().GetName();
            LuaShortCommentStatement versonStatement = new LuaShortCommentStatement($" Generated by {info.Name} Compiler");

            AddStatement(versonStatement);

            var system = LuaIdentifierNameSyntax.System;

            AddImport(system, system);
        }
コード例 #2
0
        public LuaCompilationUnitSyntax()
        {
            var info = Assembly.GetExecutingAssembly().GetName();
            LuaShortCommentStatement versonStatement = new LuaShortCommentStatement($" Generated by {info.Name} Compiler {info.Version}");

            HeadAreaStatements.Statements.Add(versonStatement);

            var system = LuaIdentifierNameSyntax.System;

            AddImport(system, system);
            Statements.Add(HeadAreaStatements);
        }