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

Method ParseInterface

Source/SpireCore/Parser.cpp:989–1000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

987 }
988
989 RefPtr<InterfaceSyntaxNode> Parser::ParseInterface()
990 {
991 RefPtr<InterfaceSyntaxNode> node = new InterfaceSyntaxNode();
992 ReadToken("interface");
993 PushScope(node.Ptr());
994 FillPosition(node.Ptr());
995 node->Name = ReadToken(TokenType::Identifier);
996 ReadToken(TokenType::LBrace);
997 ParseDeclBody(this, node.Ptr(), TokenType::RBrace);
998 PopScope();
999 return node;
1000 }
1001
1002 RefPtr<ShaderSyntaxNode> Parser::ParseShader()
1003 {

Callers 1

ParseDeclWithModifiersFunction · 0.80

Calls 3

ReadTokenFunction · 0.85
ParseDeclBodyFunction · 0.85
PtrMethod · 0.45

Tested by

no test coverage detected