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


C# DomRegion类代码示例

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


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


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