Exemple #1
0
        public void AddChildScope(SymbolScope scope)
        {
            if (childScopes == null)
            {
                childScopes = new List <SymbolScope>();
            }

            childScopes.Add(scope);
        }
Exemple #2
0
        public ICollection <Symbol> TransformSymbolImplementation(SymbolImplementation implementation)
        {
            List <Symbol> transformedSymbols = new List <Symbol>();

            SymbolScope scope = implementation.Scope;

            TransformScope(scope, transformedSymbols);

            return(transformedSymbols);
        }
Exemple #3
0
 public SymbolScope(SymbolScope parentScope)
     : this((ISymbolTable)parentScope)
 {
     Parent = parentScope;
 }
Exemple #4
0
 public SymbolImplementation(ICollection <Statement> statements, SymbolScope scope, string thisIdentifier)
 {
     Scope          = scope;
     Statements     = statements ?? System.Array.Empty <Statement>();
     ThisIdentifier = thisIdentifier;
 }
Exemple #5
0
 public SymbolImplementation(ICollection <Statement> statements, SymbolScope scope, string thisIdentifier)
 {
     Scope          = scope;
     Statements     = statements;
     ThisIdentifier = thisIdentifier;
 }