• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DomRegion类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: DefaultResolvedAccessor

		public DefaultResolvedAccessor(Accessibility accessibility, DomRegion region = default(DomRegion), IList<IAttribute> attributes = null, IList<IAttribute> returnTypeAttributes = null)
		{
			this.accessibility = accessibility;
			this.region = region;
			this.attributes = attributes ?? EmptyList<IAttribute>.Instance;
			this.returnTypeAttributes = returnTypeAttributes ?? EmptyList<IAttribute>.Instance;
		}
开发者ID:nylen,项目名称:SharpDevelop,代码行数:7,代码来源:DefaultResolvedAccessor.cs


示例2: DefaultComment

		public DefaultComment(bool isBlockComment, string commentTag, string commentText, DomRegion region)
		{
			this.isBlockComment = isBlockComment;
			this.commentTag = commentTag;
			this.commentText = commentText;
			this.region = region;
		}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:7,代码来源:DefaultComment.cs


示例3: MemberReference

		public MemberReference (object entity, DomRegion region, int offset, int length) : base (offset, length)
		{
			if (entity == null)
				throw new System.ArgumentNullException ("entity");
			EntityOrVariable = entity;
			Region = region;
		}
开发者ID:RainsSoft,项目名称:playscript-monodevelop,代码行数:7,代码来源:MemberReference.cs


示例4: CodeIssue

		/// <summary>
		/// Initializes a new instance of the <see cref="MonoDevelop.CodeIssues.CodeIssue"/> class.
		/// </summary>
		public CodeIssue (string description, DomRegion region, string inspectorIdString, IEnumerable<MonoDevelop.CodeActions.CodeAction>  actions = null)
		{
			Description = description;
			Region = region;
			Actions = actions;
			InspectorIdString = inspectorIdString;
		}
开发者ID:ncoder83,项目名称:monodevelop,代码行数:10,代码来源:CodeIssue.cs


示例5:

        static string GetNonBodyRegion
            (DomRegion region, IDocument document, DomRegion bodyRegion) {

            // Delegates have no body, so they will crash if we don't do this
            if (bodyRegion.BeginLine == 0
                && bodyRegion.EndLine == 0)
                bodyRegion = region;

            var begin     = document.GetOffset(region.Begin);
            var bodyStart = document.GetOffset(bodyRegion.Begin);

            // Some entities have no body. These include members in
            // interfaces.
            bool hasNoBody = bodyStart == begin;
            var typeSignatureLength = hasNoBody
				? document.GetOffset(region.End) - begin
				: bodyStart - begin;
            // Note: We remove extra spaces and newlines from the type
            // signature to make displaying it easier in Vim. Other
            // editors might not have a problem with displaying
            // results with multiple lines.
            var text = document.GetText
                ( offset: document.GetOffset(region.Begin)
                , length: typeSignatureLength)
                .MultipleWhitespaceCharsToSingleSpace();

            return text;
        }
开发者ID:dykim07,项目名称:vim-ide,代码行数:28,代码来源:QuickFix.cs


示例6: DefaultField

 public DefaultField(IReturnType type, string name, ModifierEnum m, DomRegion region, IClass declaringType)
     : base(declaringType, name)
 {
     this.ReturnType = type;
     this.Region = region;
     this.Modifiers = m;
 }
开发者ID:SergeTruth,项目名称:OxyChart,代码行数:7,代码来源:DefaultField.cs


示例7: ExpressionResult

		public ExpressionResult(string expression, DomRegion region, ExpressionContext context, object tag)
		{
			this.Expression = expression;
			this.Region = region;
			this.Context = context;
			this.Tag = tag;
		}
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:7,代码来源:IExpressionFinder.cs


示例8: CreateMethod

		void CreateMethod(string fileName, DomRegion region, DomRegion bodyRegion)
		{
			methodHelper.CreateMethod("Class1.MyMethod");
			methodHelper.SetRegion(region);
			methodHelper.SetBodyRegion(bodyRegion);
			methodHelper.SetCompilationUnitFileName(fileName);
		}
开发者ID:rbrunhuber,项目名称:SharpDevelop,代码行数:7,代码来源:EditPointTests.cs


示例9: AddSenderAndEventArgsParameters

		void AddSenderAndEventArgsParameters(IMethod method)
		{
			DefaultReturnType returnType = new DefaultReturnType(method.DeclaringType);
			DomRegion region = new DomRegion();
			method.Parameters.Add(new DefaultParameter("sender", returnType, region));
			method.Parameters.Add(new DefaultParameter("e", returnType, region));
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:7,代码来源:AddHandlerConversionTestFixture.cs


示例10: Message

		public Message(MessageSeverity severity, int code, DomRegion region, string format, params object[] args) {
			Severity = severity;
			Code = code;
			Region = region;
			Format = format;
			Args = args;
			FormattedMessage = Args.Length > 0 ? string.Format(Format, Args) : Format;
		}
开发者ID:ShuntaoChen,项目名称:SaltarelleCompiler,代码行数:8,代码来源:MockErrorReporter.cs


示例11: Message

 public Message(MessageSeverity severity, int code, DomRegion region, string format, params object[] args)
 {
     Severity = severity;
     Code = code;
     Region = region;
     Format = format;
     Args = args;
 }
开发者ID:JimmyJune,项目名称:SaltarelleCompiler,代码行数:8,代码来源:MockErrorReporter.cs


示例12: SimpleVariable

		public SimpleVariable(IType type, string name, DomRegion region) {
			Debug.Assert(type != null);
			Debug.Assert(name != null);
			Debug.Assert(region != null);
			this.type = type;
			this.name = name;
			this.region = region;
		}
开发者ID:chenxustu1,项目名称:SaltarelleCompiler,代码行数:8,代码来源:SimpleVariable.cs


示例13: Result

		public Result (DomRegion region, string message, Severity level, IssueMarker inspectionMark, bool underline = true)
		{
			this.Region = region;
			this.Message = message;
			this.Level = level;
			this.InspectionMark = inspectionMark;
			this.Underline = underline;
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:8,代码来源:Result.cs


示例14: DefaultVariable

		public DefaultVariable(IType type, string name, DomRegion region = default(DomRegion),
		                       bool isConst = false, object constantValue = null)
			: this(type, name)
		{
			this.region = region;
			this.isConst = isConst;
			this.constantValue = constantValue;
		}
开发者ID:0xb1dd1e,项目名称:NRefactory,代码行数:8,代码来源:DefaultVariable.cs


示例15: DefaultMethod

 public DefaultMethod(string name, IReturnType type, ModifierEnum m, DomRegion region, DomRegion bodyRegion, IClass declaringType)
     : base(declaringType, name)
 {
     this.ReturnType = type;
     this.Region     = region;
     this.BodyRegion = bodyRegion;
     Modifiers = m;
 }
开发者ID:SergeTruth,项目名称:OxyChart,代码行数:8,代码来源:DefaultMethod.cs


示例16: ConvertRegionToSegment

		public static WixDocumentLineSegment ConvertRegionToSegment(IDocument document, DomRegion region)
		{
			// Single line region
			if (IsSingleLineRegion(region)) {
				return ConvertRegionToSingleLineSegment(document, region);
			}
			return ConvertRegionToMultiLineSegment(document, region);
		}
开发者ID:hefnerliu,项目名称:SharpDevelop,代码行数:8,代码来源:WixDocumentLineSegment.cs


示例17: ExtractRegion

		static string ExtractRegion(string text, DomRegion region)
		{
			if (region.IsEmpty)
				return null;
			int start = GetOffsetByPosition(text, region.BeginLine, region.BeginColumn);
			int end = GetOffsetByPosition(text, region.EndLine, region.EndColumn);
			return text.Substring(start, end - start);
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:8,代码来源:CSharpExpressionFinderTests.cs


示例18: MemberExistsException

		public MemberExistsException (string className, string memberName, MemberType existingMemberType, MemberType newMemberType, DomRegion errorLocation, string fileName)
			: base (errorLocation, fileName)
		{
			this.className = className;
			this.memberName = memberName;
			this.existingMemberType = existingMemberType;
			this.newMemberType = newMemberType;
		}
开发者ID:Kalnor,项目名称:monodevelop,代码行数:8,代码来源:MemberExistsException.cs


示例19: MethodBodyRegion

		public void MethodBodyRegion()
		{
			int startLine = 2;
			int startColumn = 11; // IronRuby parser includes the as part of the method parameters
			int endLine = 4;
			int endColumn = 5;
			DomRegion region = new DomRegion(startLine, startColumn, endLine, endColumn);
			Assert.AreEqual(region.ToString(), method.BodyRegion.ToString());
		}
开发者ID:Bombadil77,项目名称:SharpDevelop,代码行数:9,代码来源:ParseClassMethodWithBodyTestFixture.cs


示例20: Result

		public Result (DomRegion region, string message, QuickTaskSeverity level, ResultCertainty certainty, ResultImportance importance, bool underline = true)
		{
			this.Region = region;
			this.Message = message;
			this.Level = level;
			this.Certainty = certainty;
			this.Importance = importance;
			this.Underline = underline;
		}
开发者ID:yayanyang,项目名称:monodevelop,代码行数:9,代码来源:Result.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# DomReturnType类代码示例发布时间:2022-05-24
下一篇:
C# DomNodeType类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap