示例#1
0
void AstProvider::accept(AstVisitor& visitor)
{
	visitor.preVisit(*this);

	for (AstCounterSetPtr n : *this)
		n->accept(visitor);

	visitor.postVisit(*this);
}
示例#2
0
void AstCounterSet::accept(AstVisitor& visitor)
{
	visitor.preVisit(*this);

	for (shared_ptr<AstCounter> n : *this)
		n->accept(visitor);

	visitor.postVisit(*this);
}
示例#3
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);
				}
			}
		}
示例#4
0
文件: AST.C 项目: bmajoros/BOOM
void AstForest::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#5
0
文件: AST.C 项目: bmajoros/BOOM
// **************************************************
//                 AstObject methods
// **************************************************
void AstObject::acceptVisitor(AstVisitor &v)
{
  v.visit(*this);
}
示例#6
0
文件: AST.C 项目: bmajoros/BOOM
void AstSymbol::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#7
0
文件: AST.C 项目: bmajoros/BOOM
void AstCharLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#8
0
文件: AST.C 项目: bmajoros/BOOM
void AstStringLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#9
0
文件: AST.C 项目: bmajoros/BOOM
void AstLambda::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#10
0
文件: AST.C 项目: bmajoros/BOOM
void AstFloatLit::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#11
0
文件: AST.C 项目: bmajoros/BOOM
void AstFreeVariable::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#12
0
文件: AST.C 项目: bmajoros/BOOM
void AstBoundVariable::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#13
0
文件: AST.C 项目: bmajoros/BOOM
void AstCombination::acceptVisitor(AstVisitor &visitor)
{
  visitor.visit(*this);
}
示例#14
0
	inline virtual void accept(AstVisitor& visitor)
	{
		visitor.visit(*this);
	}