public sealed override bool Equals(Object obj) { EcmaFormatRuntimePropertyInfo other = obj as EcmaFormatRuntimePropertyInfo; if (other == null) { return(false); } if (!(_reader == other._reader)) { return(false); } if (!(_propertyHandle.Equals(other._propertyHandle))) { return(false); } if (!(ContextTypeInfo.Equals(other.ContextTypeInfo))) { return(false); } if (!(_reflectedType.Equals(other._reflectedType))) { return(false); } return(true); }
public sealed override bool Equals(Object obj) { NativeFormatRuntimeEventInfo other = obj as NativeFormatRuntimeEventInfo; if (other == null) { return(false); } if (!(_reader == other._reader)) { return(false); } if (!(_eventHandle.Equals(other._eventHandle))) { return(false); } if (!(ContextTypeInfo.Equals(other.ContextTypeInfo))) { return(false); } if (!(ReflectedType.Equals(other.ReflectedType))) { return(false); } return(true); }
public GetCustomContextCompiler() { _contextData = typeof(IHasContextData) .GetTypeInfo().GetDeclaredProperty( nameof(IResolverContext.ContextData)); _scopedContextData = ContextTypeInfo.GetDeclaredProperty( nameof(IResolverContext.ScopedContextData)); }
public GetArgumentCompiler() { _argument = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.ArgumentValue)) !; _argumentLiteral = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.ArgumentLiteral)) !; _argumentOptional = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.ArgumentOptional)) !; }
public WorldContext(IWatchContext parent, string relativePath, Entities.World world, ContextFieldInfo fieldInfo) : base(parent , relativePath , new ContextMemberInfo(fieldInfo, ContextTypeInfo.Make(typeof(WorldContext))) ) { World = world; Variables.Add("Entity", new EntityDictionary(this, ".Entity", World, ContextFieldInfo.Make("Entity"))); }
public CustomContextCompilerBase() { ContextData = typeof(IHasContextData) .GetTypeInfo().GetDeclaredProperty( nameof(IResolverContext.ContextData)); ScopedContextData = ContextTypeInfo.GetDeclaredProperty( nameof(IResolverContext.ScopedContextData)); LocalContextData = ContextTypeInfo.GetDeclaredProperty( nameof(IResolverContext.LocalContextData)); }
public sealed override bool Equals(object obj) { if (!(obj is NativeFormatRuntimePropertyInfo other)) { return(false); } if (!(_reader == other._reader)) { return(false); } if (!(_propertyHandle.Equals(other._propertyHandle))) { return(false); } if (!(ContextTypeInfo.Equals(other.ContextTypeInfo))) { return(false); } if (!(_reflectedType.Equals(other._reflectedType))) { return(false); } return(true); }
public GetObjectTypeCompiler() { _objectType = ContextTypeInfo.GetProperty( nameof(IResolverContext.ObjectType)); }
public GetOperationCompiler() { _operation = ContextTypeInfo.GetProperty( nameof(IResolverContext.Operation)); }
public GetQueryCompiler() { _query = ContextTypeInfo.GetProperty( nameof(IResolverContext.Document)); }
public GetSchemaCompiler() { _schema = ContextTypeInfo.GetProperty( nameof(IResolverContext.Schema)); }
public ContextMemberInfo(ContextFieldInfo fieldInfo, ContextTypeInfo typeInfo) { FieldInfo = fieldInfo; TypeInfo = typeInfo; }
void UpdateAutoComplete() { AutoCompleteSuggestions.Clear(); RangeInt cursor = addWatchText.Range(); if (AutoCompleteGlobalContext.TryParseDeepest(addWatchText, ref cursor, out AutoCompleteDeepestContext)) { if (AutoCompleteDeepestContext != AutoCompleteGlobalContext) { AutoCompleteSuggestions.Add(new ContextMemberInfo(ContextFieldInfo.Make(".."), ContextTypeInfo.Make(AutoCompleteDeepestContext.GetType()))); } AutoCompleteValidString = addWatchText.Substring(0, cursor.start); AutoCompleteDeepestContext.VisitAllMembers((ContextMemberInfo info) => { AutoCompleteSuggestions.Add(info); return(true); }); //ParserUtils.TryParseAt(addWatchText, ref cursor, "."); //if (ctx.TryCreateWatch(addWatchText, cursor, out var w)) //{ // WatchRegistry.AddWatch(w); //} } }
public GlobalContext() : base(null, "", new ContextMemberInfo(ContextFieldInfo.Make(""), ContextTypeInfo.Make(typeof(GlobalContext)))) { Variables.Add("World", new WorldDictionary(this, "World", ContextFieldInfo.Make("World"))); Variables.Add("Scene", new SceneDictionary(this, "Scene", ContextFieldInfo.Make("Scene"))); }
public GetCancellationTokenCompiler() { _requestAborted = ContextTypeInfo.GetDeclaredProperty( nameof(IResolverContext.RequestAborted)); }
public GetFieldSelectionCompiler() { _fieldSelection = ContextTypeInfo.GetProperty( nameof(IResolverContext.FieldSelection)); }
public GetEventMessageCompiler() { _argument = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.CustomProperty)); }
public static ContextMemberInfo MakeNotImplemented() { return(new ContextMemberInfo(ContextFieldInfo.Make("Not Implemented"), ContextTypeInfo.MakeUnknown())); }
public GetOutputFieldCompiler() { _outputField = ContextTypeInfo.GetProperty( nameof(IResolverContext.Field)); }
public GetParentCompiler() { GenericMethod = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.Parent)); }
public GetServiceCompiler() { GenericMethod = ContextTypeInfo.GetDeclaredMethods( nameof(IResolverContext.Service)) .First(t => t.IsGenericMethod); }
public GetArgumentCompiler() { _argument = ContextTypeInfo.GetDeclaredMethod( nameof(IResolverContext.Argument)); }