Lines Matching refs:fOffset
235 return StringFragment(fText + token.fOffset, token.fLength); in text()
239 this->error(token.fOffset, msg); in error()
280 return std::unique_ptr<ASTDeclaration>(new ASTExtension(start.fOffset, in directive()
335 return std::unique_ptr<ASTDeclaration>(new ASTSection(start.fOffset, in section()
397 return std::unique_ptr<ASTDeclaration>(new ASTEnum(name.fOffset, this->text(name), names, in enumDeclaration()
454 return std::unique_ptr<ASTDeclaration>(new ASTFunction(name.fOffset, in declaration()
501 this->error(decl->fOffset, "array size in struct field must be a constant"); in structDeclaration()
511 this->error(decl->fOffset, "initializers are not permitted on struct fields"); in structDeclaration()
518 fTypes.add(this->text(name), std::unique_ptr<Type>(new Type(name.fOffset, this->text(name), in structDeclaration()
520 return std::unique_ptr<ASTType>(new ASTType(name.fOffset, this->text(name), in structDeclaration()
538 this->error(var.fValue->fOffset, in structVarDeclaration()
637 return std::unique_ptr<ASTParameter>(new ASTParameter(name.fOffset, modifiers, std::move(type), in parameter()
1036 return std::unique_ptr<ASTStatement>(new ASTBlock(start.fOffset, in statement()
1085 return std::unique_ptr<ASTType>(new ASTType(type.fOffset, this->text(type), in type()
1131 return std::unique_ptr<ASTDeclaration>(new ASTInterfaceBlock(name.fOffset, mods, in interfaceBlock()
1166 return std::unique_ptr<ASTIfStatement>(new ASTIfStatement(start.fOffset, in ifStatement()
1199 return std::unique_ptr<ASTDoStatement>(new ASTDoStatement(start.fOffset, in doStatement()
1224 return std::unique_ptr<ASTWhileStatement>(new ASTWhileStatement(start.fOffset, in whileStatement()
1251 return std::unique_ptr<ASTSwitchCase>(new ASTSwitchCase(start.fOffset, std::move(value), in switchCase()
1299 cases.emplace_back(new ASTSwitchCase(defaultStart.fOffset, nullptr, in switchStatement()
1305 return std::unique_ptr<ASTStatement>(new ASTSwitchStatement(start.fOffset, in switchStatement()
1374 return std::unique_ptr<ASTForStatement>(new ASTForStatement(start.fOffset, in forStatement()
1396 return std::unique_ptr<ASTReturnStatement>(new ASTReturnStatement(start.fOffset, in returnStatement()
1409 return std::unique_ptr<ASTBreakStatement>(new ASTBreakStatement(start.fOffset)); in breakStatement()
1421 return std::unique_ptr<ASTContinueStatement>(new ASTContinueStatement(start.fOffset)); in continueStatement()
1433 return std::unique_ptr<ASTDiscardStatement>(new ASTDiscardStatement(start.fOffset)); in discardStatement()
1451 return std::unique_ptr<ASTBlock>(new ASTBlock(start.fOffset, in block()
1857 return std::unique_ptr<ASTSuffix>(new ASTIndexSuffix(next.fOffset)); in suffix()
1868 int offset = this->peek().fOffset; in suffix()
1890 return std::unique_ptr<ASTSuffix>(new ASTCallSuffix(next.fOffset, in suffix()
1894 return std::unique_ptr<ASTSuffix>(new ASTSuffix(next.fOffset, in suffix()
1897 return std::unique_ptr<ASTSuffix>(new ASTSuffix(next.fOffset, in suffix()
1915 result.reset(new ASTIdentifier(t.fOffset, std::move(text))); in term()
1922 result.reset(new ASTIntLiteral(t.fOffset, i)); in term()
1929 result.reset(new ASTFloatLiteral(t.fOffset, f)); in term()
1937 result.reset(new ASTBoolLiteral(t.fOffset, b)); in term()
1943 result.reset(new ASTNullLiteral(t.fOffset)); in term()
1955 this->error(t.fOffset, "expected expression, but found '" + this->text(t) + "'\n"); in term()