Example #1
0
        public override CILModule BuildNode(ParseTreeNode node)
        {
            var result = new CILModule();

            var name1ParseTreeNode = node.GetFirstChildWithGrammarName(GrammarNames.name1);
            var moduleName         = Name1ParseTreeNodeHelper.GetValue(name1ParseTreeNode);

            result.ModuleName = moduleName;

            return(result);
        }
Example #2
0
        public override CILExternalAssembly BuildNode(ParseTreeNode node)
        {
            var result = new CILExternalAssembly();

            var assemblyRefHeadParseTreeNode      = node.GetFirstChildWithGrammarName(GrammarNames.assemblyRefHead);
            var assemblyRefHeadName1ParseTreeNode = assemblyRefHeadParseTreeNode.GetFirstChildWithGrammarName(GrammarNames.name1);
            var assemblyName = Name1ParseTreeNodeHelper.GetValue(assemblyRefHeadName1ParseTreeNode);

            result.AssemblyName = assemblyName;

            return(result);
        }