本文整理汇总了C#中RubyMemberFlags类的典型用法代码示例。如果您正苦于以下问题:C# RubyMemberFlags类的具体用法?C# RubyMemberFlags怎么用?C# RubyMemberFlags使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RubyMemberFlags类属于命名空间,在下文中一共展示了RubyMemberFlags类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RubyFieldInfo
public RubyFieldInfo(FieldInfo/*!*/ fieldInfo, RubyMemberFlags flags, RubyModule/*!*/ declaringModule, bool isSetter, bool isDetached)
: base(flags, declaringModule) {
Assert.NotNull(fieldInfo, declaringModule);
_fieldInfo = fieldInfo;
_isSetter = isSetter;
_isDetached = isDetached;
}
示例2: RubyAttributeAccessorInfo
protected RubyAttributeAccessorInfo(RubyMemberFlags flags, RubyModule/*!*/ declaringModule, string/*!*/ variableName)
: base(flags, declaringModule)
{
Assert.NotEmpty(variableName);
Debug.Assert(variableName.StartsWith("@"));
_instanceVariableName = variableName;
}
示例3: RubyLambdaMethodInfo
internal RubyLambdaMethodInfo(Proc/*!*/ block, string/*!*/ definitionName, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
: base(flags, declaringModule) {
Assert.NotNull(block, definitionName, declaringModule);
_lambda = block.ToLambda(this);
_definitionName = definitionName;
_id = Interlocked.Increment(ref _Id);
}
示例4: RubyMethodGroupBase
protected RubyMethodGroupBase(OverloadInfo/*!*/[] methods, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
: base(flags, declaringModule)
{
if (methods != null) {
SetMethodBasesNoLock(methods);
}
}
示例5: RubyMethodGroupInfo
// copy ctor
private RubyMethodGroupInfo(RubyMethodGroupInfo/*!*/ info, RubyMemberFlags flags, RubyModule/*!*/ module)
: base(info.MethodBases, flags, module) {
_isStatic = info._isStatic;
_hasVirtuals = info._hasVirtuals;
_staticDispatchMethods = info._staticDispatchMethods;
// Note: overloadOwners and maxCachedOverloadLevel are cleared whenever the group is copied.
}
示例6: RubyLibraryMethodInfo
/// <summary>
/// Creates a Ruby method implemented by a method group of CLR methods.
/// </summary>
internal RubyLibraryMethodInfo(LibraryOverload/*!*/[]/*!*/ overloads, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
: base(null, flags, declaringModule)
{
Assert.NotNullItems(overloads);
Assert.NotEmpty(overloads);
_overloads = overloads;
}
示例7: RubyEventInfo
public RubyEventInfo(EventTracker/*!*/ tracker, RubyMemberFlags flags, RubyModule/*!*/ declaringModule, bool isDetached)
: base(flags, declaringModule)
{
Assert.NotNull(tracker, declaringModule);
_tracker = tracker;
_isDetached = isDetached;
}
示例8: RubyMethodInfo
// method:
internal RubyMethodInfo(RubyMethodBody/*!*/ body, RubyScope/*!*/ declaringScope, RubyModule/*!*/ declaringModule, RubyMemberFlags flags)
: base(flags, declaringModule) {
Assert.NotNull(body, declaringModule);
_body = body;
_declaringScope = declaringScope;
}
示例9: RubyMemberInfo
internal RubyMemberInfo(RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
{
Assert.NotNull(declaringModule);
Debug.Assert(flags != RubyMemberFlags.Invalid);
_flags = flags;
_declaringModule = declaringModule;
}
示例10: RubyMethodGroupInfo
/// <summary>
/// Creates a Ruby method implemented by a method group of CLR methods.
/// </summary>
internal RubyMethodGroupInfo(Delegate/*!*/[]/*!*/ overloads, RubyMemberFlags flags,
RubyModule/*!*/ declaringModule)
: base(flags, declaringModule) {
Assert.NotNullItems(overloads);
Assert.NotNull(declaringModule);
_overloads = overloads;
_isClrStatic = false;
_isRubyMethod = true;
}
示例11: RubyMethodInfo
// method:
internal RubyMethodInfo(object/*!*/ ast, Delegate/*!*/ method, RubyModule/*!*/ declaringModule,
string/*!*/ definitionName, int mandatory, int optional, bool hasUnsplatParameter, RubyMemberFlags flags)
: base(flags, declaringModule) {
Assert.NotNull(ast, method, declaringModule, definitionName);
_ast = ast;
_method = method;
_mandatoryParamCount = mandatory;
_optionalParamCount = optional;
_hasUnsplatParameter = hasUnsplatParameter;
_definitionName = definitionName;
}
示例12: Copy
protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
return new RubyEventInfo(_tracker, flags, module, true);
}
示例13: Copy
protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
return new RubyMethodGroupInfo(this, flags, module);
}
示例14: Copy
protected internal override RubyMemberInfo/*!*/ Copy(RubyMemberFlags flags, RubyModule/*!*/ module) {
return new RubyAttributeWriterInfo(flags, module, InstanceVariableName);
}
示例15: RubyCustomMethodInfo
public RubyCustomMethodInfo(RuleGenerator/*!*/ ruleGenerator, RubyMemberFlags flags, RubyModule/*!*/ declaringModule)
: base(flags, declaringModule)
{
Assert.NotNull(ruleGenerator, declaringModule);
_ruleGenerator = ruleGenerator;
}