modules/ballerina-core/src/main/java/org/ballerinalang/model/builder/BLangModelBuilder.java
public void addAnnotationtDef(NodeLocation location, String name) {
        annotationDefBuilder.setName(name);
        annotationDefBuilder.setPackagePath(currentPackagePath);
        
        getAnnotationAttachments().forEach(attachment -> annotationDefBuilder.addAnnotation(attachment));
        
        AnnotationDef annotationDef = annotationDefBuilder.build();
        bFileBuilder.addAnnotationDef(annotationDef);
        
        // Close annotation scope
        currentScope = annotationDef.getEnclosingScope();
        currentStructBuilder = null;
    }
/**
     * Creates a {@code AnnotationDef}.
     * 
     * @param location Location of this {@code AnnotationDef} in the source file
     * @param name Name of the {@code AnnotationDef}
     */


@param location Location of this  AnnotationDef in the source file
@param name Name of the  AnnotationDef
@param location Location of this AnnotationDef in the source file @param name Name of the AnnotationDef
public void addAnnotationtDef(NodeLocation location, String name) {
        annotationDefBuilder.setName(name);
        annotationDefBuilder.setPackagePath(currentPackagePath);
        getAnnotationAttachments().forEach(attachment -> annotationDefBuilder.addAnnotation(attachment));
        AnnotationDef annotationDef = annotationDefBuilder.build();
        bFileBuilder.addAnnotationDef(annotationDef);
        currentScope = annotationDef.getEnclosingScope();
        currentStructBuilder = null;
    }
public void addAnnotationtDef ( NodeLocation location , String name ) { annotationDefBuilder . setName ( name ) ; annotationDefBuilder . setPackagePath ( currentPackagePath ) ; getAnnotationAttachments ( ) . forEach ( attachment -> annotationDefBuilder . addAnnotation ( attachment ) ) ; AnnotationDef annotationDef = annotationDefBuilder . build ( ) ; bFileBuilder . addAnnotationDef ( annotationDef ) ; currentScope = annotationDef . getEnclosingScope ( ) ; currentStructBuilder = null ; }
Creates a {@code AnnotationDef}.
Creates a { @code AnnotationDef } .
// Close annotation scope