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