Exemplo n.º 1
0
        /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
        public void addTypeDef(String definedType)
        {
            if (m_symbols.ContainsKey(definedType))
            {
                throw new ScopeException("typedef not possible, this type already exists");
            }
            Symbol newSymbol = new SymbolTypedef(definedType, this);

            m_symbols[definedType] = newSymbol;
        }
Exemplo n.º 2
0
 /// <exception cref="ScopeException">thrown, when trying to redefine symbol</exception>
 public void addTypeDef(String definedType) {
     if (m_symbols.ContainsKey(definedType)) {
         throw new ScopeException("typedef not possible, this type already exists");
     }
     Symbol newSymbol = new SymbolTypedef(definedType, this);
     m_symbols[definedType] = newSymbol;
 }