Exemplo n.º 1
0
        private SchemaInfo CreateSchemaInfo(SchemaDeclaration schemaDeclaration)
        {
            var schemaInfo = new SchemaInfo(schemaDeclaration.Name);

            symbols_.Add(schemaDeclaration, schemaInfo);

            return(schemaInfo);
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
        public override void VisitSchemaDeclaration(SchemaDeclaration schemaDeclaration)
        {
            PushScope(CurrentScope.CreateChildScope(schemaDeclaration));

            var schemaInfo = CreateSchemaInfo(schemaDeclaration);

            PushDeclaringSymbol(schemaInfo);

            base.VisitSchemaDeclaration(schemaDeclaration);

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