Example #1
0
 @Test
 public void testParseSymbol2() {
   final SymbolLiteralNode _node;
   _node = ((SymbolLiteralNode) Parser.factory.source_("#foo").parseExpression());
   assertTrue(
       st.gravel.support.jvm.ObjectExtensions.equals_(_node.factory(), SymbolLiteralNode.factory));
   assertTrue(
       st.gravel.support.jvm.ObjectExtensions.equals_(
           _node.value(), st.gravel.core.Symbol.value("foo")));
 }
Example #2
0
 @Override
 public st.gravel.core.Symbol packageName() {
   final st.gravel.core.Symbol _sp;
   final String _pnString;
   _sp = super.packageName();
   if (_sp != null) {
     return _sp;
   }
   String _temp1 = _properties.get("packageName");
   _pnString = ((String) _temp1);
   if (_pnString == null) {
     return null;
   }
   return st.gravel.core.Symbol.value(_pnString);
 }