Beispiel #1
0
		void doFields(DArray<T> fields)
		{
			for(auto &f: fields)
			{
				if(f.docs.length == 0)
					continue;

				if(auto method = f.func)
				{
					visit(method);

					if(c.docDecorators())
						f.initializer = makeDocCall(f.initializer);
				}
				else
				{
					// TODO: this location might not be on exactly the same line as the field itself.. huge deal?
					DocTableDesc desc;
					pushDocTable(desc, f.initializer->location, f.docsLoc, ATODA("field"), f.name, f.docs);

					if(f.initializer->sourceStr.length)
					{
						pushTrimmedString(f.initializer->sourceStr);
						croc_fielda(t, mDocTable, "value");
					}

					popDocTable(desc);
				}
			}
		}
Beispiel #2
0
void AstForest::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #3
0
// **************************************************
//                 AstObject methods
// **************************************************
void AstObject::acceptVisitor(AstVisitor &v)
{
  v.visit(*this);
}
Beispiel #4
0
void AstSymbol::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #5
0
void AstCharLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #6
0
void AstStringLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #7
0
void AstLambda::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #8
0
void AstFloatLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #9
0
void AstFreeVariable::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #10
0
void AstBoundVariable::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #11
0
void AstCombination::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
Beispiel #12
0
	inline virtual void accept(AstVisitor& visitor)
	{
		visitor.visit(*this);
	}