本文整理汇总了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;
}
示例2: DefaultComment
public DefaultComment(bool isBlockComment, string commentTag, string commentText, DomRegion region)
{
this.isBlockComment = isBlockComment;
this.commentTag = commentTag;
this.commentText = commentText;
this.region = region;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例7: ExpressionResult
public ExpressionResult(string expression, DomRegion region, ExpressionContext context, object tag)
{
this.Expression = expression;
this.Region = region;
this.Context = context;
this.Tag = tag;
}
示例8: CreateMethod
void CreateMethod(string fileName, DomRegion region, DomRegion bodyRegion)
{
methodHelper.CreateMethod("Class1.MyMethod");
methodHelper.SetRegion(region);
methodHelper.SetBodyRegion(bodyRegion);
methodHelper.SetCompilationUnitFileName(fileName);
}
示例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));
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}