_id
stringlengths
2
7
title
stringclasses
1 value
partition
stringclasses
3 values
text
stringlengths
6
2.61k
language
stringclasses
1 value
meta_information
dict
c17600
train
// RootTypeSpec returns the TypeSpec that the given linked TypeSpec points to. // // For most types, this is the type itself. For Typedefs, it is the root // TypeSpec of the Typedef's target.
{ "resource": "" }
c17601
train
// Link replaces the typeSpecReference with an actual linked TypeSpec.
{ "resource": "" }
c17602
train
// ForEachTypeReference on an unresolved typeSpecReference will cause a system // panic.
{ "resource": "" }
c17603
train
// compileTypeReference compiles the given AST type reference into a TypeSpec. // // The returned TypeSpec may need to be linked eventually.
{ "resource": "" }
c17604
train
// NewServer builds a new server.
{ "resource": "" }
c17605
train
// Handle handles the given binary payload.
{ "resource": "" }
c17606
train
// Helper to build TApplicationException wire.Values
{ "resource": "" }
c17607
train
// Name is the combined name of this plugin
{ "resource": "" }
c17608
train
// Close closes all Handles associated with this MultiHandle.
{ "resource": "" }
c17609
train
// ServiceGenerator returns a ServiceGenerator which calls into the // ServiceGenerators of all plugins associated with this MultiHandle and // consolidates their results.
{ "resource": "" }
c17610
train
// Handle returns a reference to the Handle that owns this ServiceGenerator.
{ "resource": "" }
c17611
train
// Generate calls all the service generators associated with this plugin and // consolidates their output. // // Any conflicts in the generated files will result in a failure.
{ "resource": "" }
c17612
train
// NewTransportHandle builds a new Handle which speaks to the given transport. // // If the transport is an io.Closer, it will be closed when the handle is closed.
{ "resource": "" }
c17613
train
// Service generates code for the given service. // // Returns a map from file name to contents for that file. The file names are // relative to the package directory for the service.
{ "resource": "" }
c17614
train
// ServiceFunction generates code for the given function of the given service.
{ "resource": "" }
c17615
train
// functionParams returns a named parameter list for the given function.
{ "resource": "" }
c17616
train
// functionNewArgs generates an expression which provides the NewArgs function // for the given Thrift function.
{ "resource": "" }
c17617
train
// BorrowWriter fetches a Writer from the system that will write its output to // the given io.Writer. // // This Writer must be returned back using ReturnWriter.
{ "resource": "" }
c17618
train
// WriteValue writes the given Thrift value to the underlying stream using the // Thrift Binary Protocol.
{ "resource": "" }
c17619
train
// Info for Constant
{ "resource": "" }
c17620
train
// Info for Typedef.
{ "resource": "" }
c17621
train
// Info for Enum.
{ "resource": "" }
c17622
train
// Info for Struct.
{ "resource": "" }
c17623
train
// Info for Service.
{ "resource": "" }
c17624
train
// curryGenerator adds g as the first argument to f if f accepts it. Otherwise f // is returned unmodified.
{ "resource": "" }
c17625
train
// NewGenerator sets up a new generator for Go code.
{ "resource": "" }
c17626
train
// checkNoZap returns whether the NoZap flag is passed.
{ "resource": "" }
c17627
train
// TextTemplate renders the given template with the given template context.
{ "resource": "" }
c17628
train
// appendDecl appends a new declaration to the generator.
{ "resource": "" }
c17629
train
// Generate generates code based on the given options.
{ "resource": "" }
c17630
train
// Visit the given node and its descendants.
{ "resource": "" }
c17631
train
// Handle gets a Handle to this plugin specification. // // The returned handle MUST be closed by the caller if error was nil.
{ "resource": "" }
c17632
train
// UnmarshalFlag parses a string specification of a plugin.
{ "resource": "" }
c17633
train
// Handle gets a MultiHandle to all the plugins in this list or nil if the // list is empty. // // The returned handle MUST be closed by the caller if error was nil.
{ "resource": "" }
c17634
train
// ToWirePtr is the same as ToWire expect `varName` is expected to be a // reference to a value of the given type.
{ "resource": "" }
c17635
train
// FromWirePtr generates a string assigning the given Value to the given lhs, // which is a pointer to a value of the given type. // // A variable err of type error MUST be in scope and will be assigned the // parse error, if any.
{ "resource": "" }
c17636
train
// TypeCode gets an expression of type 'wire.Type' that represents the // over-the-wire type code for the given TypeSpec.
{ "resource": "" }
c17637
train
// isRequired checks if a field should be required based on the // fieldRequiredness setting. An error is returned if the specified requiredness // is disallowed by this configuration.
{ "resource": "" }
c17638
train
// compileField compiles the given Field source into a FieldSpec.
{ "resource": "" }
c17639
train
// Link links together any references made by the FieldSpec.
{ "resource": "" }
c17640
train
// compileFields compiles a collection of AST fields into a FieldGroup.
{ "resource": "" }
c17641
train
// FindByName retrieves the FieldSpec for the field with the given name.
{ "resource": "" }
c17642
train
// Link resolves references made by fields inside the FieldGroup.
{ "resource": "" }
c17643
train
// ForEachTypeReference applies the given function on each TypeSpec in the // FieldGroup.
{ "resource": "" }
c17644
train
// LookupType for Module.
{ "resource": "" }
c17645
train
// LookupConstant for Module.
{ "resource": "" }
c17646
train
// LookupService for Module.
{ "resource": "" }
c17647
train
// LookupInclude for Module.
{ "resource": "" }
c17648
train
// Walk the module tree starting at the given module. This module and all its // direct and transitive dependencies will be visited exactly once in an // unspecified order. The walk will stop on the first error returned by `f`.
{ "resource": "" }
c17649
train
// compileConstantValue compiles a constant value AST into a ConstantValue.
{ "resource": "" }
c17650
train
// Link for ConstantBool
{ "resource": "" }
c17651
train
// Link for ConstantInt.
{ "resource": "" }
c17652
train
// Link for ConstantString.
{ "resource": "" }
c17653
train
// Link for ConstantDouble.
{ "resource": "" }
c17654
train
// buildConstantStruct builds a constant struct from a ConstantMap.
{ "resource": "" }
c17655
train
// Link for ConstantStruct
{ "resource": "" }
c17656
train
// Link for ConstantMap.
{ "resource": "" }
c17657
train
// Link for ConstantSet.
{ "resource": "" }
c17658
train
// Link for ConstantList.
{ "resource": "" }
c17659
train
// Link for ConstReference.
{ "resource": "" }
c17660
train
// Link for EnumItemReference.
{ "resource": "" }
c17661
train
// Link a constantReference. // // This resolves the reference to a ConstReference or an EnumItemReference.
{ "resource": "" }
c17662
train
// lookupEnum looks up an enum with the given name in the given scope.
{ "resource": "" }
c17663
train
// NewClient starts up the given external process and communicates with it over // stdin and stdout using framed requests and responses. // // The Cmd MUST NOT have Stdout or Stdin set.
{ "resource": "" }
c17664
train
// Send sends the given frame to the external process and returns the response. // // Panics if Close was already called.
{ "resource": "" }
c17665
train
// Close detaches from the external process and waits for it to exit.
{ "resource": "" }
c17666
train
// Equals returns true if all the fields of this Plugin_Goodbye_Args match the // provided Plugin_Goodbye_Args. // // This function performs a deep comparison.
{ "resource": "" }
c17667
train
// Equals returns true if all the fields of this Plugin_Goodbye_Result match the // provided Plugin_Goodbye_Result. // // This function performs a deep comparison.
{ "resource": "" }
c17668
train
// LineNumber returns the line in the file at which the given node was defined // or 0 if the Node does not record its line number.
{ "resource": "" }
c17669
train
// Read reads the next frame from the Reader.
{ "resource": "" }
c17670
train
// Close closes the given Reader.
{ "resource": "" }
c17671
train
// unsafeStringToBytes converts a string into a byte slice without allocating // new memory for it with the assumption that the resulting byte slice will not // be mutated.
{ "resource": "" }
c17672
train
// typedef generates code for the given typedef.
{ "resource": "" }
c17673
train
// EncodeResponse writes the response to the writer using a non-strict // envelope.
{ "resource": "" }
c17674
train
// visited returns true if the given TypeSpec has already been visited. // Otherwise it returns false, and marks the TypeSpec as visited.
{ "resource": "" }
c17675
train
// cloneWithPart creates a copy of this typeCycleFinder with the given // TypeSpec added to the chain.
{ "resource": "" }
c17676
train
// newImporter builds a new importer.
{ "resource": "" }
c17677
train
// AddImportSpec allows adding existing import specs to the importer. // // An error is returned if there's a naming conflict.
{ "resource": "" }
c17678
train
// Import ensures that the generated module has the given module imported and // returns the name that should be used by the generated code to reference items // defined in the module.
{ "resource": "" }
c17679
train
// importDecl builds an import declation from the given list of imports.
{ "resource": "" }
c17680
train
// Write writes an Envelope to the given writer.
{ "resource": "" }
c17681
train
// ReadReply reads enveloped responses from the given reader.
{ "resource": "" }
c17682
train
// compileMapType compiles the given MapType AST into a MapSpec.
{ "resource": "" }
c17683
train
// Link resolves the type references in the MapSpec.
{ "resource": "" }
c17684
train
// ThriftName for MapSpec
{ "resource": "" }
c17685
train
// ForEachTypeReference for MapSpec
{ "resource": "" }
c17686
train
// compileListSpec compiles the given ListType AST into a ListSpec.
{ "resource": "" }
c17687
train
// Link resolves the type references in the ListSpec.
{ "resource": "" }
c17688
train
// ForEachTypeReference for ListSpec
{ "resource": "" }
c17689
train
// compileSetSpec compiles the given SetType AST into a SetSpec.
{ "resource": "" }
c17690
train
// Link resolves the type references in the SetSpec.
{ "resource": "" }
c17691
train
// ForEachTypeReference for SetSpec
{ "resource": "" }
c17692
train
// compileStruct compiles a struct AST into a StructSpec.
{ "resource": "" }
c17693
train
// Link links together all references in the StructSpec.
{ "resource": "" }
c17694
train
// ForEachTypeReference for StructSpec
{ "resource": "" }
c17695
train
// verifyAncestry verifies that the Thrift file for the given module and the // Thrift files for all imported modules are contained within the directory // tree rooted at the given path.
{ "resource": "" }
c17696
train
// findCommonAncestor finds the deepest common ancestor for the given module // and all modules imported by it.
{ "resource": "" }
c17697
train
// commonPrefix finds the shortest common prefix for the two lists. // // An empty slice may be returned if the two lists don't have a common prefix.
{ "resource": "" }
c17698
train
// determinePackagePrefix determines the package prefix for Go packages // generated in this file. // // dir must be an absolute path.
{ "resource": "" }
c17699
train
// Parse a semantic version string.
{ "resource": "" }