Beispiel #1
0
 internal VBText(VB6CodeModelFactoryContext factoryContext, ITerminalNode token)
 {
     Token           = token;
     FactoryContext  = factoryContext;
     RootModule      = factoryContext.RootModule;
     ParentCodeBlock = factoryContext.ParentCodeBlock;
 }
Beispiel #2
0
 public VB6CodeModelFactoryContext(VBBaseModule rootModule, VBBaseCodeModel parentCodeBlock, ParserRuleContext context, VBScope scope)
 {
     RootModule      = rootModule;
     ParentCodeBlock = parentCodeBlock;
     ParserContext   = context;
     Scope           = scope;
 }
Beispiel #3
0
        internal VBScope(VBScope parentScope, VBBaseCodeModel codeModel, VBProgramScope level)
        {
            ParentScope = parentScope;
            CodeModel   = codeModel;
            ScopeLevel  = level;
            ChildScopes = new ReadOnlyCollection <VBScope>(_childs);

            if (parentScope != null)
            {
                parentScope.AddChildScope(this);
            }
        }
Beispiel #4
0
 internal VBBaseStatement(VB6CodeModelFactoryContext factoryContext) : base(factoryContext.ParserContext)
 {
     RootModule      = factoryContext.RootModule;
     ParentCodeBlock = factoryContext.ParentCodeBlock;
     Scope           = factoryContext.Scope;
 }
Beispiel #5
0
 public VB6CodeModelFactory(VBBaseModule rootModule, VBBaseCodeModel parentCodeBlock)
 {
     _rootModule      = rootModule;
     _parentCodeBlock = parentCodeBlock;
 }