当前位置: 首页>>代码示例>>C#>>正文


C# SyntaxTree.uses_list类代码示例

本文整理汇总了C#中PascalABCCompiler.SyntaxTree.uses_list的典型用法代码示例。如果您正苦于以下问题:C# uses_list类的具体用法?C# uses_list怎么用?C# uses_list使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


uses_list类属于PascalABCCompiler.SyntaxTree命名空间,在下文中一共展示了uses_list类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: NewProgramModule

        public program_module NewProgramModule(program_name progName, Object optHeadCompDirs, uses_list mainUsesClose, syntax_tree_node progBlock, Object optPoint, LexLocation loc)
        {
            var progModule = new program_module(progName, mainUsesClose, progBlock as block, null, loc);
            progModule.Language = LanguageId.PascalABCNET;
            if (optPoint == null && progBlock != null)
            {
                var fp = progBlock.source_context.end_position;
                var err_stn = progBlock;
			    if ((progBlock is block) && (progBlock as block).program_code != null && (progBlock as block).program_code.subnodes != null && (progBlock as block).program_code.subnodes.Count > 0)
                    err_stn = (progBlock as block).program_code.subnodes[(progBlock as block).program_code.subnodes.Count - 1];
                parsertools.errors.Add(new PABCNETUnexpectedToken(parsertools.CurrentFileName, StringResources.Get("TKPOINT"), new SourceContext(fp.line_num, fp.column_num + 1, fp.line_num, fp.column_num + 1, 0, 0), err_stn));
            }
            return progModule;
        }
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:14,代码来源:SemanticRules.cs

示例2: InsertBefore

		public void InsertBefore(uses_list el, uses_list newel)
		{
			listunitsections.Insert(FindIndex(el), newel);
		}
开发者ID:Slav76,项目名称:pascalabcnet,代码行数:4,代码来源:Tree.cs

示例3: visit

		public void visit(uses_list _uses_list)
		{
			bw.Write((Int16)53);
			write_uses_list(_uses_list);
		}
开发者ID:Slav76,项目名称:pascalabcnet,代码行数:5,代码来源:SyntaxTreeStreamWriter.cs

示例4: program_module

		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public program_module(string _file_name,List<compiler_directive> _compiler_directives,LanguageId _Language,program_name _program_name,uses_list _used_units,block _program_block,using_list _using_namespaces,SourceContext sc)
		{
			this._file_name=_file_name;
			this._compiler_directives=_compiler_directives;
			this._Language=_Language;
			this._program_name=_program_name;
			this._used_units=_used_units;
			this._program_block=_program_block;
			this._using_namespaces=_using_namespaces;
			source_context = sc;
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:14,代码来源:Tree.cs

示例5: program_body

		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public program_body(uses_list _used_units,declarations _program_definitions,statement_list _program_code,using_list _using_list)
		{
			this._used_units=_used_units;
			this._program_definitions=_program_definitions;
			this._program_code=_program_code;
			this._using_list=_using_list;
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:10,代码来源:Tree.cs

示例6: c_module

		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public c_module(declarations _defs,uses_list _used_units,SourceContext sc)
		{
			this._defs=_defs;
			this._used_units=_used_units;
			source_context = sc;
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:9,代码来源:Tree.cs

示例7: implementation_node

		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public implementation_node(uses_list _uses_modules,declarations _implementation_definitions,using_list _using_namespaces,SourceContext sc)
		{
			this._uses_modules=_uses_modules;
			this._implementation_definitions=_implementation_definitions;
			this._using_namespaces=_using_namespaces;
			source_context = sc;
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:10,代码来源:Tree.cs

示例8: visit

		public void visit(uses_list _uses_list)
		{
			read_uses_list(_uses_list);
		}
开发者ID:CSRedRat,项目名称:pascalabcnet,代码行数:4,代码来源:SyntaxTreeStreamReader.cs

示例9: visit

		public override void visit(uses_list _uses_list)
		{
			prepare_collection(_uses_list.units,"uses");
		}
开发者ID:Slav76,项目名称:pascalabcnet,代码行数:4,代码来源:visualizator.cs

示例10: visit

 public override void visit(uses_list _uses_list)
 {
     sb.Append("uses");
     IncOffset();
     for (int i = 0; i < _uses_list.units.Count; i++)
     {
         if (i == 0)
         {
             add_newline_before = true;
             keyword_offset = "uses".Length;
         }
         if (i > 0)
             add_space_after = true;
         visit_node(_uses_list.units[i]);
     }
     insert_newline_after_prev = true;
     DecOffset();
 }
开发者ID:PascalABC-CompilerLaboratory,项目名称:pascalabcnet,代码行数:18,代码来源:CodeFormatter.cs

示例11: ReplaceInList

		public void ReplaceInList(uses_list el, IEnumerable<uses_list> newels)
		{
			var ind = FindIndexInList(el);
			listunitsections.RemoveAt(ind);
			listunitsections.InsertRange(ind, newels);
		}
开发者ID:Slav76,项目名称:pascalabcnet,代码行数:6,代码来源:Tree.cs

示例12: Remove

		public bool Remove(uses_list el)
		{
			return listunitsections.Remove(el);
		}
开发者ID:Slav76,项目名称:pascalabcnet,代码行数:4,代码来源:Tree.cs

示例13: interface_node

		///<summary>
		///Конструктор с параметрами.
		///</summary>
		public interface_node(declarations _interface_definitions,uses_list _uses_modules,using_list _using_namespaces,SourceContext sc)
		{
			this._interface_definitions=_interface_definitions;
			this._uses_modules=_uses_modules;
			this._using_namespaces=_using_namespaces;
			source_context = sc;
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:10,代码来源:Tree.cs

示例14: read_uses_list

		public void read_uses_list(uses_list _uses_list)
		{
			read_syntax_tree_node(_uses_list);
			if (br.ReadByte() == 0)
			{
				_uses_list.units = null;
			}
			else
			{
				_uses_list.units = new List<unit_or_namespace>();
				Int32 ssyy_count = br.ReadInt32();
				for(Int32 ssyy_i = 0; ssyy_i < ssyy_count; ssyy_i++)
				{
					_uses_list.units.Add(_read_node() as unit_or_namespace);
				}
			}
		}
开发者ID:CSRedRat,项目名称:pascalabcnet,代码行数:17,代码来源:SyntaxTreeStreamReader.cs

示例15: visit

		public override void visit(uses_list _uses_list)
		{
			throw new NotImplementedException();
		}
开发者ID:lisiynos,项目名称:pascalabcnet,代码行数:4,代码来源:ExpressionVisitor.cs


注:本文中的PascalABCCompiler.SyntaxTree.uses_list类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。