Esempio n. 1
0
def generateIncludeEntity(includeEntity):
	of = cdifWriter.get_outputhandle()
	cdifWriter.writeRecordPrefix(of, "Include")
	cdifWriter.writeStringField(of, "includingFile", includeEntity.getIncludingFile())
	cdifWriter.writeStringField(of, "includedFile", includeEntity.getIncludedFile())
	cdifWriter.writeSourceAnchors(of, [includeEntity.getSourceLocation()])
	cdifWriter.writeRecordPostfix(of)
Esempio n. 2
0
def generateTypeDefInfo(typeDefRef):
	of = cdifWriter.get_outputhandle()
	cdifWriter.writeRecordPrefix(of, "TypeDef")
	cdifWriter.writeStringField(of, "belongsToContext", typeDefRef.getNamespaceName())
	cdifWriter.writeStringField(of, "declaredReturnType", typeDefRef.getName())
	cdifWriter.writeStringField(of, "baseReturnType", typeDefRef.getBaseType())

	if typeDefRef.getBaseClass() != None:
		cdifWriter.writeStringField(of, "baseReturnClass", typeDefRef.getBaseClass())

	if typeDefRef.getSourceLocation() != None:
		srcLoc = typeDefRef.getSourceLocation()
		cdifWriter.writeSourceAnchor(of, srcLoc.sourceFile,\
										srcLoc.start,\
										srcLoc.end)

	if typeDefRef.getBaseSourceLocation() != None:
		baseSrcLoc = typeDefRef.getBaseSourceLocation()
		if baseSrcLoc.sourceFile != "":
			cdifWriter.writeTypeSourceAnchor(of, baseSrcLoc.sourceFile,\
												 baseSrcLoc.start)

	cdifWriter.writeRecordPostfix(of)
Esempio n. 3
0
def generateIncludeInfo(includingFile, includedFile):
	of = cdifWriter.get_outputhandle()
	cdifWriter.writeRecordPrefix(of, "Include")
	cdifWriter.writeStringField(of, "includingFile", includingFile)
	cdifWriter.writeStringField(of, "includedFile", includedFile)
	cdifWriter.writeRecordPostfix(of)