• Home
  • Raw
  • Download

Lines Matching refs:fOffset

276     return StringFragment(fText.begin() + token.fOffset, token.fLength);  in text()
280 this->error(token.fOffset, msg); in error()
318 return this->createNode(start.fOffset, ASTNode::Kind::kExtension, this->text(name)); in directive()
349 size_t startOffset = codeStart.fOffset; in section()
369 text.fLength = next.fOffset - startOffset; in section()
376 return this->createNode(start.fOffset, ASTNode::Kind::kSection, in section()
398 ASTNode::ID result = this->createNode(name.fOffset, ASTNode::Kind::kEnum, this->text(name)); in enumDeclaration()
410 result, this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
414 this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
430 this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
435 this->createNode(id.fOffset, ASTNode::Kind::kEnumCase, this->text(id))); in enumDeclaration()
451 this->error(lookahead.fOffset, "expected a declaration, but found ';'"); in declaration()
467 return this->createNode(lookahead.fOffset, ASTNode::Kind::kModifiers, modifiers); in declaration()
478 ASTNode::ID result = this->createNode(name.fOffset, ASTNode::Kind::kFunction); in declaration()
582 this->error(declsNode.fOffset, in structDeclaration()
590 this->error(declsNode.fOffset, in structDeclaration()
602 this->error(declsNode.fOffset, "array size in struct field must be a constant"); in structDeclaration()
606 this->error(declsNode.fOffset, "array size is invalid"); in structDeclaration()
616 this->error(declsNode.fOffset, "initializers are not permitted on struct fields"); in structDeclaration()
624 this->error(name.fOffset, in structDeclaration()
628 std::unique_ptr<Type> newType = Type::MakeStructType(name.fOffset, this->text(name), fields); in structDeclaration()
630 this->error(name.fOffset, "struct '" + this->text(name) + "' is too deeply nested"); in structDeclaration()
634 return this->createNode(name.fOffset, ASTNode::Kind::kType, this->text(name)); in structDeclaration()
654 int offset = this->peek().fOffset; in varDeclarationEnd()
741 ASTNode::ID result = this->createNode(name.fOffset, ASTNode::Kind::kParameter); in parameter()
759 this->addChild(result, this->createNode(sizeToken.fOffset, ASTNode::Kind::kInt, arraySize)); in parameter()
808 code.fChars = fText.begin() + start.fOffset; in layoutCode()
835 code.fLength = next.fOffset - start.fOffset; in layoutCode()
1078 return this->createNode(start.fOffset, ASTNode::Kind::kBlock); in statement()
1097 ASTNode::ID result = this->createNode(type.fOffset, ASTNode::Kind::kType, this->text(type)); in type()
1107 this->addChild(result, this->createNode(this->peek().fOffset, in type()
1136 ASTNode::ID result = this->createNode(name.fOffset, ASTNode::Kind::kInterfaceBlock); in interfaceBlock()
1189 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kIf, isStatic); in ifStatement()
1223 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kDo); in doStatement()
1258 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kWhile); in whileStatement()
1281 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kSwitchCase); in switchCase()
1322 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kSwitch, isStatic); in switchStatement()
1340 result, this->createNode(defaultStart.fOffset, ASTNode::Kind::kSwitchCase)); in switchStatement()
1366 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kFor); in forStatement()
1420 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kReturn); in returnStatement()
1443 return this->createNode(start.fOffset, ASTNode::Kind::kBreak); in breakStatement()
1455 return this->createNode(start.fOffset, ASTNode::Kind::kContinue); in continueStatement()
1467 return this->createNode(start.fOffset, ASTNode::Kind::kDiscard); in discardStatement()
1480 ASTNode::ID result = this->createNode(start.fOffset, ASTNode::Kind::kBlock); in block()
1528 ASTNode::ID newResult = this->createNode(t.fOffset, ASTNode::Kind::kBinary, in expression()
1568 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in assignmentExpression()
1601 ASTNode::ID ternary = this->createNode(getNode(base).fOffset, ASTNode::Kind::kTernary); in ternaryExpression()
1628 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in logicalOrExpression()
1653 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in logicalXorExpression()
1678 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in logicalAndExpression()
1703 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in bitwiseOrExpression()
1728 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in bitwiseXorExpression()
1753 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, ASTNode::Kind::kBinary, in bitwiseAndExpression()
1781 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in equalityExpression()
1815 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in relationalExpression()
1847 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in shiftExpression()
1879 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in additiveExpression()
1912 ASTNode::ID newResult = this->createNode(getNode(result).fOffset, in multiplicativeExpression()
1943 ASTNode::ID result = this->createNode(t.fOffset, ASTNode::Kind::kPrefix, in unaryExpression()
2000 ASTNode::ID result = this->createNode(next.fOffset, ASTNode::Kind::kIndex); in suffix()
2009 ASTNode::ID result = this->createNode(next.fOffset, ASTNode::Kind::kIndex); in suffix()
2015 int offset = this->peek().fOffset; in suffix()
2026 int offset = this->peek().fOffset; in suffix()
2057 ASTNode::ID result = this->createNode(next.fOffset, ASTNode::Kind::kField, field); in suffix()
2062 ASTNode::ID result = this->createNode(next.fOffset, ASTNode::Kind::kCall); in suffix()
2081 ASTNode::ID result = this->createNode(next.fOffset, ASTNode::Kind::kPostfix, in suffix()
2100 return this->createNode(t.fOffset, ASTNode::Kind::kIdentifier, std::move(text)); in term()
2107 return this->createNode(t.fOffset, ASTNode::Kind::kInt, i); in term()
2114 return this->createNode(t.fOffset, ASTNode::Kind::kFloat, f); in term()
2122 return this->createNode(t.fOffset, ASTNode::Kind::kBool, b); in term()
2141 this->error(t.fOffset, "expected expression, but found '" + this->text(t) + "'"); in term()