Example #1
0
        private SchemaInfo CreateSchemaInfo(SchemaDeclaration schemaDeclaration)
        {
            var schemaInfo = new SchemaInfo(schemaDeclaration.Name);

            symbols_.Add(schemaDeclaration, schemaInfo);

            return(schemaInfo);
        }
        public override void VisitSchemaDeclaration(SchemaDeclaration schemaDeclaration)
        {
            Debug.WriteLine("Begin SchemaDeclaration " + schemaDeclaration.Name);

            scopes_.Push(CurrentScope.CreateChildScope(schemaDeclaration));

            base.VisitSchemaDeclaration(schemaDeclaration);

            scopes_.Pop();

            Debug.WriteLine("End SchemaDeclaration " + schemaDeclaration.Name);
        }
Example #3
0
        public override void VisitSchemaDeclaration(SchemaDeclaration schemaDeclaration)
        {
            PushScope(CurrentScope.CreateChildScope(schemaDeclaration));

            var schemaInfo = CreateSchemaInfo(schemaDeclaration);

            PushDeclaringSymbol(schemaInfo);

            base.VisitSchemaDeclaration(schemaDeclaration);

            PopDeclaringSymbol();
            PopScope();
        }
Example #4
0
 public SchemaInfo GetSchemaInfo(SchemaDeclaration schemaDeclaration)
 {
     return(symbolTable_.GetSymbolInfo(schemaDeclaration) as SchemaInfo);
 }
Example #5
0
 public virtual void VisitSchemaDeclaration(SchemaDeclaration schemaDeclaration)
 {
     DefaultVisit(schemaDeclaration);
 }