MCPcopy Create free account
hub / github.com/csyonghe/Spire / ParseDeclBody

Function ParseDeclBody

Source/SpireCore/Parser.cpp:959–974  ·  view source on GitHub ↗

Parse a body consisting of declarations

Source from the content-addressed store, hash-verified

957
958 // Parse a body consisting of declarations
959 static void ParseDeclBody(
960 Parser* parser,
961 ContainerDecl* containerDecl,
962 CoreLib::Text::TokenType closingToken)
963 {
964 while(!AdvanceIfMatch(parser, closingToken))
965 {
966 RefPtr<Decl> decl = ParseDecl(parser, containerDecl);
967 if (decl)
968 {
969 decl->ParentDecl = containerDecl;
970 //containerDecl->Members.Add(decl);
971 }
972 TryRecover(parser);
973 }
974 }
975
976 RefPtr<ProgramSyntaxNode> Parser::ParseProgram()
977 {

Callers 6

ParseProgramMethod · 0.85
ParseInterfaceMethod · 0.85
ParseShaderMethod · 0.85
ParseTemplateShaderMethod · 0.85
ParsePipelineMethod · 0.85
ParseStructMethod · 0.85

Calls 3

AdvanceIfMatchFunction · 0.85
ParseDeclFunction · 0.85
TryRecoverFunction · 0.85

Tested by

no test coverage detected