private List <ContextItem> GetSubItemList() { string typeName = Result.CurrentToken.Previous.Text; ContextItem ci = Context[typeName]; List <ContextItem> items = new List <ContextItem>(); if (ci.IsType) //Statics eines Typs anzeigen { items = ContextProvider.GetStaticMembers(ci.Type, Context.Type).ToList(); } else if (ci.IsMember) //Zugreifbare Members eines vorausgehenden Members anzeigen { items = ContextProvider.GetInstanceMembers(ci.Type, Context.Type).ToList(); } return(items); }
private void OnContextTypeChanged() { ContextProvider = new ContextProvider(ContextType); Parser = new Parser(ContextProvider); autoCompleteList.PreLoadItemList(); }
public ExpressionProvider(ContextProvider context) { m_context = context; m_compiler = new ExpressionCompiler(m_context); }
public ExpressionCompiler(ContextProvider context) { m_context = context; }
public Parser(ContextProvider contextProvider) { Context = contextProvider; m_expressionProvider = new ExpressionProvider(Context); }